/* Imperial Legend — Silkroad Private Server */
:root {
    --gold: #f2ca50;
    --gold-deep: #d4af37;
    --gold-dim: #e9c349;
    --gold-light: #ffe088;
    --crimson: #920703;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #131313;
}
.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
    line-height: 1;
}

/* Grid overlay */
.grid-overlay {
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.6) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(
        circle at 50% 30%,
        #000 0%,
        transparent 70%
    );
}

/* Gold text */
.gold-text {
    background: linear-gradient(
        100deg,
        #ffe9a8 0%,
        var(--gold) 35%,
        var(--gold-deep) 60%,
        #ffe9a8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: goldShine 6s linear infinite;
}
@keyframes goldShine {
    to {
        background-position: 200% center;
    }
}

/* Logo mark */
.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 0.25rem;
    background: linear-gradient(
        145deg,
        var(--gold-light),
        var(--gold-deep) 60%,
        #8a6d12
    );
    position: relative;
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}
.logo-mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 2px;
    background: #131313;
}
.logo-mark::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 1px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-deep));
    z-index: 1;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.25rem;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #2a2000;
    background: linear-gradient(
        180deg,
        var(--gold-light) 0%,
        var(--gold) 45%,
        var(--gold-deep) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition:
        box-shadow 0.35s ease,
        transform 0.15s ease,
        filter 0.25s ease;
    text-decoration: none;
}
.btn-primary:hover {
    box-shadow:
        0 0 28px rgba(212, 175, 55, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--gold);
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.55);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.2s ease;
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}
.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b6657;
    background: #1c1b1b;
    border: 1px solid #2e2a20;
    cursor: not-allowed;
}

/* Timer */
.timer-box {
    position: relative;
    min-width: 84px;
    padding: 1.1rem 0.75rem 0.85rem;
    border-radius: 0.5rem;
    background: linear-gradient(
        180deg,
        rgba(32, 31, 31, 0.85),
        rgba(14, 14, 14, 0.85)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
}
.timer-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    padding: 1px;
    background: linear-gradient(
        160deg,
        rgba(212, 175, 55, 0.7),
        rgba(212, 175, 55, 0.05) 60%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.timer-num {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}
.timer-label {
    display: block;
    margin-top: 0.4rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #99907c;
}
@media (min-width: 768px) {
    .timer-box {
        min-width: 120px;
    }
    .timer-num {
        font-size: 3rem;
    }
}

/* Server cards */
.server-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(28, 27, 27, 0.85),
        rgba(14, 14, 14, 0.92)
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #2e2a20;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.server-card .status-bar {
    height: 4px;
    width: 100%;
}
.server-card.disabled {
    opacity: 0.62;
    filter: saturate(0.5);
}
.server-card.disabled:hover {
    opacity: 0.78;
    transform: translateY(-2px);
}
.server-card.featured {
    border-color: transparent;
    background: linear-gradient(
        180deg,
        rgba(40, 34, 18, 0.92),
        rgba(20, 16, 6, 0.95)
    );
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.18),
        0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.server-card.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    padding: 1.5px;
    background: linear-gradient(
        160deg,
        var(--gold),
        rgba(212, 175, 55, 0.15) 55%,
        var(--gold-deep)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.server-card.featured:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.3),
        0 24px 60px rgba(0, 0, 0, 0.6);
}

.featured-tag {
    position: absolute;
    top: 14px;
    right: -34px;
    transform: rotate(45deg);
    width: 130px;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 0;
    color: #2a2000;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Cap ring */
.cap-ring {
    width: 92px;
    height: 92px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3a352a;
    background: radial-gradient(circle at 35% 30%, #2a2a2a, #121212);
    position: relative;
}
.cap-ring span {
    font-family: "Libre Caslon Text", serif;
    font-weight: 700;
    font-size: 1.9rem;
    color: #b8b2a1;
}
.cap-ring.gold {
    width: 108px;
    height: 108px;
    border-color: var(--gold-deep);
    background: radial-gradient(circle at 35% 30%, #3a2f10, #120d02);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.35),
        inset 0 0 18px rgba(212, 175, 55, 0.2);
}
.cap-ring.gold span {
    font-size: 2.3rem;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

/* Cap image */
.cap-image {
    width: 65%;
    height: 65%;
    object-fit: contain;
    position: absolute;
}

/* Status chips */
.status-chip {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
}
.status-chip.offline {
    color: #ff9a8a;
    background: rgba(146, 7, 3, 0.18);
    border: 1px solid rgba(180, 10, 5, 0.4);
}
.status-chip.soon {
    color: #131313;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    animation: softPulse 2.2s ease-in-out infinite;
}
.status-chip.online {
    color: #7ee787;
    background: rgba(40, 90, 40, 0.25);
    border: 1px solid rgba(80, 160, 80, 0.4);
}
@keyframes softPulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 22px rgba(212, 175, 55, 0.7);
    }
}

/* Glass relic */
.glass-relic {
    position: relative;
    border-radius: 0.5rem;
    background: rgba(18, 18, 18, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid #2e2a20;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.glass-relic::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    padding: 1px;
    background: linear-gradient(
        160deg,
        rgba(212, 175, 55, 0.5),
        rgba(212, 175, 55, 0.03) 60%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Form fields */
.field {
    position: relative;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    background: #0e0e0e;
    border: 1px solid #2e2a20;
    border-radius: 0.25rem;
    padding: 1.1rem 0.9rem 0.5rem;
    color: #e5e2e1;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}
.field textarea {
    resize: vertical;
    padding-top: 1.4rem;
}
.field select {
    padding-top: 1.25rem;
    appearance: none;
    cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 1px var(--gold),
        0 0 16px rgba(212, 175, 55, 0.2);
}
.field label {
    position: absolute;
    left: 0.95rem;
    top: 0.95rem;
    color: #99907c;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.18s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field label.label-static {
    top: 0.4rem;
    left: 0.9rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-family: "JetBrains Mono", monospace;
}
.field select option {
    background: #1c1b1b;
    color: #e5e2e1;
}

/* Floating socials */
.floating-social {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: var(--gold);
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}
.floating-social:hover {
    transform: translateY(-3px) scale(1.06);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.5);
}

/* Scroll reveal */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

#formMsg.success {
    color: #7ee787;
}
#formMsg.error {
    color: #ff9a8a;
}
