.onyx-service {
    --service-gold: #fbd181;
    --service-text: #f4edf6;
    --service-muted: #cbc0d0;
    --service-border: #624b5b;
    width: min(100%, 73rem);
    margin: clamp(1rem, 4vw, 3.25rem) auto 0;
    color: var(--service-text);
    font-family: 'DINNextW1G', sans-serif;
}

.onyx-service-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(20rem, 33vw, 26rem);
    overflow: hidden;
    border: 1px solid var(--service-border);
    border-radius: 1rem;
    background: #18121e;
    box-shadow: 0 1rem 3.5rem #0b08118c;
}

.onyx-service-hero img {
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--service-art-position, 73% 36%);
}

.onyx-service--downloads { --service-art-position: 44% 83%; }
.onyx-service--downloads .onyx-service-hero img { width: 73%; }
.onyx-service--forum { --service-art-position: 76% top; }
.onyx-service--shop { --service-art-position: 86% 50%; }

.onyx-service-hero::before,
.onyx-service-hero::after {
    position: absolute;
    pointer-events: none;
    content: '';
}

.onyx-service-hero::before {
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #170f1b 3%, #170f1bf2 27%, #170f1b63 63%, #170f1b0f),
                linear-gradient(0deg, #170f1ba8, transparent 65%);
}

.onyx-service-hero::after {
    inset: .6rem;
    border: 1px solid #fbd18136;
    border-radius: .6rem;
}

.onyx-service-intro {
    max-width: 34rem;
    padding: clamp(1.55rem, 5vw, 3.75rem);
}

.onyx-service-kicker,
.onyx-service-card-tag {
    display: block;
    color: var(--service-gold);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.onyx-service-kicker i { margin-inline-end: .35rem; }

.onyx-service h1,
.onyx-service h2,
.onyx-service h3 {
    color: var(--service-text);
    font-family: 'albertus', Georgia, serif;
    font-weight: 400;
}

.onyx-service h1 {
    margin: .65rem 0 .7rem;
    font-size: clamp(2.65rem, 6vw, 5rem);
    line-height: .99;
    text-shadow: 0 .2rem 1.15rem #100a16;
}

.onyx-service-intro p {
    max-width: 25rem;
    margin: 0 0 1.25rem;
    color: #ede2ee;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.5;
}

.onyx-service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.65rem;
    padding: .45rem .8rem;
    border: 1px solid #9b7959;
    border-radius: .5rem;
    background: #362b37;
    color: #ffe0a8;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.onyx-service-action i { font-size: .8em; }
.onyx-service-action:is(:hover, :focus-visible) {
    border-color: var(--service-gold);
    background: #46343e;
    color: #fff0ce;
    text-decoration: none;
}
.onyx-service-action--gold { background: #efc383; color: #271a21; border-color: #f9d797; }
.onyx-service-action--gold:is(:hover, :focus-visible) {
    background: #ffe0a5;
    color: #271a21;
    box-shadow: 0 0 1.1rem #fbd1813b;
}

.onyx-service-options {
    margin-top: 1.9rem;
    scroll-margin-top: 1rem;
}

.onyx-service-options-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .85rem;
}

.onyx-service-options h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

.onyx-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.onyx-service-grid--cash { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.onyx-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 11rem;
    gap: .5rem;
    padding: clamp(1rem, 2.1vw, 1.45rem);
    border: 1px solid #574656;
    border-radius: .75rem;
    background: linear-gradient(145deg, #302432, #1e1826 74%);
}

.onyx-service-card:focus-within { border-color: #b58f64; }
.onyx-service-icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid #fbd18145;
    border-radius: .55rem;
    background: #44303a;
    color: var(--service-gold);
    font-size: .96rem;
}

.onyx-service-card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.17; }
.onyx-service-card p { margin: 0; color: var(--service-muted); font-size: .98rem; line-height: 1.4; }
.onyx-service-card .onyx-service-action { margin-top: auto; }
.onyx-service-card p:has(+ .onyx-service-action) { margin-bottom: .5rem; }

.onyx-service-card .onyx-service-cash {
    color: #ffe2ab;
    font: 700 clamp(1.2rem, 2.35vw, 2rem)/1.15 'DINNextW1G', sans-serif;
    font-variant-numeric: tabular-nums;
}
.onyx-service-cash span { font-size: .65em; white-space: nowrap; }
.onyx-service-card .onyx-service-package { color: var(--service-text); }
.onyx-service-card .onyx-service-bonus { color: #c9d6b2; font-size: .82rem; }
.onyx-service-card .onyx-service-price {
    width: 100%;
    margin-top: auto;
    padding-top: .65rem;
    border-top: 1px solid #fbd1812a;
    color: #f8e6cf;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.onyx-service-event,
.onyx-service-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .9rem;
    margin-top: 1.15rem;
    padding: .85rem 1rem;
    border: 1px solid #896747;
    border-radius: .7rem;
    background: #271f2d;
    color: var(--service-text);
    text-decoration: none;
}

.onyx-service-event { flex-wrap: nowrap; transition: background-color .16s ease, border-color .16s ease; }
.onyx-service-event span { flex: 1; line-height: 1.3; }
.onyx-service-event small { display: block; color: var(--service-gold); }
.onyx-service-event strong { overflow-wrap: anywhere; }
.onyx-service-event time { display: inline-block; margin-inline-start: .45rem; color: var(--service-muted); font-size: .9rem; }
.onyx-service-event > i:last-child, .onyx-service-help i { color: var(--service-gold); }
.onyx-service-event:is(:hover, :focus-visible) { background: #3c2c3b; color: var(--service-text); border-color: var(--service-gold); text-decoration: none; }
.onyx-service-help a { color: var(--service-gold); text-decoration: underline; text-underline-offset: .2em; }
.onyx-service a:focus-visible { outline: 2px solid var(--service-gold); outline-offset: 3px; }

@media (max-width: 960px) {
    .onyx-service-grid--cash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .onyx-service-hero { align-items: flex-end; min-height: 21rem; }
    .onyx-service-hero img { width: 100%; }
    .onyx-service--downloads .onyx-service-hero img { width: 100%; object-position: 44% 16%; }
    .onyx-service-hero::before {
        background: linear-gradient(0deg, #170f1b 0%, #170f1bef 25%, #170f1b70 66%, #170f1b10),
                    linear-gradient(90deg, #170f1b8c, transparent 74%);
    }
    .onyx-service-grid { grid-template-columns: 1fr; }
    .onyx-service-grid--cash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onyx-service-options { margin-top: 1.5rem; }
    .onyx-service-options-head {
        padding: .7rem .9rem;
        border: 1px solid #574656;
        border-radius: .65rem;
        background: #221a29;
    }
}
