/* Gilded lines: the Rodnia style. Dark ground, game art, and fine gold lines that frame, divide and underline. */
:root {
    --ln-ink: #07090a;
    --ln-gold: #c9a961;
    --ln-gold-light: #ecd9a6;
    --ln-line: rgba(201, 169, 97, 0.55);
    --ln-line-soft: rgba(201, 169, 97, 0.22);
    --ln-cream: #f2ead6;
    --ln-text: #c9c6bb;
    --ln-muted: #8f8a7c;
    --ln-display: "Cormorant Garamond", Georgia, serif;
    --ln-body: "Inter", system-ui, sans-serif;
    --ln-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* two hairline frames around the viewport; the lines run past each other at the corners */
.ln-frame {
    --ln-a: 16px;
    --ln-b: 24px;
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background:
        linear-gradient(var(--ln-line), var(--ln-line)) 0 var(--ln-a) / 100% 1px no-repeat,
        linear-gradient(var(--ln-line-soft), var(--ln-line-soft)) 0 var(--ln-b) / 100% 1px no-repeat,
        linear-gradient(var(--ln-line), var(--ln-line)) 0 calc(100% - var(--ln-a)) / 100% 1px no-repeat,
        linear-gradient(var(--ln-line-soft), var(--ln-line-soft)) 0 calc(100% - var(--ln-b)) / 100% 1px no-repeat,
        linear-gradient(var(--ln-line), var(--ln-line)) var(--ln-a) 0 / 1px 100% no-repeat,
        linear-gradient(var(--ln-line-soft), var(--ln-line-soft)) var(--ln-b) 0 / 1px 100% no-repeat,
        linear-gradient(var(--ln-line), var(--ln-line)) calc(100% - var(--ln-a)) 0 / 1px 100% no-repeat,
        linear-gradient(var(--ln-line-soft), var(--ln-line-soft)) calc(100% - var(--ln-b)) 0 / 1px 100% no-repeat;
}

/* a rule: two lines fading outward from a hollow diamond */
.ln-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: var(--ln-gold);
}

.ln-rule::before,
.ln-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ln-line));
}

.ln-rule::after {
    background: linear-gradient(90deg, var(--ln-line), transparent);
}

.ln-rule i {
    flex: none;
    width: 7px;
    height: 7px;
    border: 1px solid var(--ln-gold);
    transform: rotate(45deg);
}

/* a short caps title between two lines */
.ln-title {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 0;
    font-family: var(--ln-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ln-gold-light);
    white-space: nowrap;
}

.ln-title::before,
.ln-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ln-line));
}

.ln-title::after {
    background: linear-gradient(90deg, var(--ln-line), transparent);
}

/* a button drawn with two lines */
.ln-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 14px 34px;
    font-family: var(--ln-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ln-cream);
    background: rgba(7, 9, 10, 0.35);
    border: 1px solid var(--ln-gold);
    outline: 1px solid var(--ln-line-soft);
    outline-offset: -6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ln-ease-out);
    -webkit-tap-highlight-color: transparent;
}

.ln-btn i {
    font-size: 16px;
    color: var(--ln-gold);
}

.ln-btn.is-primary {
    color: #1c1508;
    background: linear-gradient(180deg, #e9d39a 0%, #c9a961 100%);
    outline-color: rgba(28, 21, 8, 0.35);
}

.ln-btn.is-primary i {
    color: #1c1508;
}

.ln-btn.is-discord {
    background: linear-gradient(180deg, #6873f5 0%, #4752c4 100%);
    outline-color: rgba(255, 255, 255, 0.28);
}

.ln-btn.is-discord i {
    color: #fff;
}

.ln-btn:active {
    transform: scale(0.97);
}

.ln-btn:focus-visible {
    outline: 2px solid var(--ln-gold-light);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .ln-btn:hover {
        background-color: rgba(201, 169, 97, 0.14);
    }

    .ln-btn.is-primary:hover {
        background: linear-gradient(180deg, #f3e2b4 0%, #d6b873 100%);
    }

    .ln-btn.is-discord:hover {
        background: linear-gradient(180deg, #7a84f7 0%, #525dd6 100%);
    }
}

/* numbers in a row, divided by hairlines, between two lines */
.ln-figures {
    display: flex;
    width: 100%;
    border-top: 1px solid var(--ln-line-soft);
    border-bottom: 1px solid var(--ln-line-soft);
}

.ln-figures > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px 10px;
}

.ln-figures > div + div {
    border-left: 1px solid var(--ln-line-soft);
}

.ln-figures b {
    font-family: var(--ln-display);
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
    color: var(--ln-cream);
    font-variant-numeric: tabular-nums lining-nums;
}

.ln-figures span {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ln-muted);
}

/* the same figures as separate tiles, each drawn with two lines */
.ln-figures.is-tiles {
    gap: 8px;
    width: auto;
    border: 0;
}

.ln-figures.is-tiles > div {
    flex: 0 0 84px;
    padding: 12px 4px 10px;
    background: rgba(7, 9, 10, 0.5);
    border: 1px solid var(--ln-line);
    outline: 1px solid var(--ln-line-soft);
    outline-offset: -5px;
}

.ln-figures.is-tiles b {
    font-size: 30px;
}

@media (max-width: 767.98px) {
    .ln-frame {
        --ln-a: 8px;
        --ln-b: 13px;
    }

    .ln-figures b {
        font-size: 30px;
    }

    .ln-figures.is-tiles {
        width: 100%;
    }

    .ln-figures.is-tiles > div {
        flex: 1 1 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ln-btn {
        transition: none;
    }
}
