/* Aetheria Origins 1X | V430 | Shareable official rule clauses
   Isolated enhancement, no changes to the official rule content.
*/
.rules-body .rule-chapter__share {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(221, 187, 124, .15);
}
.rules-body .rule-chapter__content .rule-clause {
    position: relative;
    scroll-margin-top: calc(var(--header-height, 90px) + 26px);
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    transition: background-color .16s ease, border-color .16s ease;
}
.rules-body .rule-chapter__content .rule-clause:hover {
    background: rgba(75, 114, 137, .09);
}
.rules-body .rule-chapter__content .rule-clause.is-deep-linked,
.rules-body .rule-chapter__content .rule-clause:target {
    border-color: rgba(240, 201, 124, .68);
    background: linear-gradient(110deg, rgba(215, 163, 73, .17), rgba(18, 42, 58, .15));
    box-shadow: inset 3px 0 0 #e4bb73;
}
.rules-body .rule-clause__text {
    display: block;
    color: #dae5ec;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.rules-body .rule-clause__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.rules-body button.rule-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 10px;
    gap: 6px;
    border: 1px solid rgba(211, 170, 102, .46);
    border-radius: 7px;
    background: rgba(13, 36, 51, .8);
    color: #e5c68c;
    font: 650 11px/1.35 "Segoe UI", Arial, sans-serif;
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.rules-body button.rule-share-button:hover {
    border-color: #e0bb78;
    background: rgba(91, 70, 41, .3);
    color: #f6d9a2;
}
.rules-body button.rule-share-button:focus-visible {
    outline: 2px solid #f2d18d;
    outline-offset: 2px;
}
.rules-body .rules-share-feedback {
    pointer-events: none;
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 9000;
    max-width: min(450px, calc(100vw - 32px));
    transform: translate(-50%, 10px);
    border: 1px solid rgba(237, 195, 118, .72);
    border-radius: 10px;
    padding: 11px 18px;
    color: #ffe3a7;
    background: #081925;
    box-shadow: 0 14px 42px #000a;
    font: 600 13px/1.5 "Segoe UI", Arial, sans-serif;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.rules-body .rules-share-feedback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
@media (max-width: 680px) {
    .rules-body .rule-chapter__share { justify-content: flex-start; }
    .rules-body .rule-chapter__content .rule-clause { padding: 10px; }
    .rules-body .rule-clause__tools { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .rules-body .rule-chapter__content .rule-clause,
    .rules-body button.rule-share-button,
    .rules-body .rules-share-feedback { transition: none; }
}