*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rules-bg: #0a0a0b;
    --rules-surface: rgba(18, 18, 22, 0.92);
    --rules-surface-soft: rgba(18, 18, 22, 0.76);
    --rules-surface-muted: rgba(255, 255, 255, 0.03);
    --rules-border: rgba(255, 255, 255, 0.08);
    --rules-border-strong: rgba(255, 255, 255, 0.14);
    --rules-text: #f7f7f8;
    --rules-text-soft: rgba(255, 255, 255, 0.78);
    --rules-text-muted: rgba(255, 255, 255, 0.56);
    --rules-orange: #3be22e;
    --rules-orange-dark: #30b129;
    --rules-danger: #ef4444;
    --rules-shadow-sm: 0 16px 38px rgba(0, 0, 0, 0.24);
    --rules-shadow-md: 0 22px 56px rgba(0, 0, 0, 0.34);
    --rules-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.rules-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--main-font);
    color: var(--rules-text);
    background:
        radial-gradient(40% 18% at 50% 0%, rgba(48, 177, 41, 0.09), rgba(10, 10, 11, 0) 75%),
        linear-gradient(180deg, #0a0a0b 0%, #0e0e10 100%);
    padding-top: 96px;
    overflow-x: hidden;
}

.rules-body footer,
.rules-body .footer,
.rules-body .site-footer {
    margin-top: auto;
}

.rules-body ::selection {
    background: rgba(48, 177, 41, 0.22);
    color: #fff;
}

.rules-wrapper {
    width: 100%;
    flex: 1 0 auto;
}

.rules-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

/* HERO */

.rules-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 24px;
}

.rules-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(36% 22% at 24% 18%, rgba(48, 177, 41, 0.08), rgba(10, 10, 11, 0) 72%),
        radial-gradient(28% 18% at 78% 20%, rgba(48, 177, 41, 0.05), rgba(10, 10, 11, 0) 72%);
    pointer-events: none;
}

.rules-hero-top,
.rules-overview-wrap {
    position: relative;
    z-index: 1;
}

.rules-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: start;
}

.rules-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.18);
    color: rgba(48, 177, 41, 0.98);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rules-title {
    margin: 0;
    max-width: 860px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 0%, #fff2de 56%, #3be22e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rules-lead {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--rules-text-soft);
}

.rules-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    flex-shrink: 0;
}

.rules-type-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rules-overview-wrap {
    margin-top: 28px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(18, 18, 22, 0.78);
    border: 1px solid var(--rules-border);
    box-shadow: var(--rules-shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rules-overview-kicker {
    margin: 0 0 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rules-orange);
}

.rules-overview-heading {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.rules-overview-copy {
    margin: 10px 0 0;
    max-width: 700px;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--rules-text-soft);
}

/* BUTTONS */

.rules-type-btn,
.rules-admin-btn,
.rules-chip,
.rule-edit-btn,
.rule-delete-btn,
.category-delete-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.84);
    border-radius: 14px;
    min-height: 44px;
    padding: 0 16px;
    font-family: var(--main-font);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.rules-type-btn:hover,
.rules-admin-btn:hover,
.rules-chip:hover,
.rule-edit-btn:hover,
.rule-delete-btn:hover,
.category-delete-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(48, 177, 41, 0.2);
    color: #fff;
}

.rules-type-btn.is-active,
.rules-admin-btn {
    background: linear-gradient(135deg, var(--rules-orange), var(--rules-orange-dark));
    border-color: rgba(48, 177, 41, 0.3);
    color: #fff;
    box-shadow: 0 10px 24px rgba(48, 177, 41, 0.16);
}

/* OVERVIEW */

.rules-categoryOverview {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rules-overviewCard {
    appearance: none;
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: #fff;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.rules-overviewCard:hover,
.rules-overviewCard.is-active {
    transform: translateY(-2px);
    border-color: rgba(48, 177, 41, 0.22);
    background: rgba(48, 177, 41, 0.06);
    box-shadow: var(--rules-shadow-sm);
}

.rules-overviewCard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.rules-overviewIcon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.rules-overviewDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3be22e;
    box-shadow: 0 0 14px rgba(48, 177, 41, 0.4);
}

.rules-overviewRange {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.16);
    color: rgba(48, 177, 41, 0.96);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rules-overviewTitle {
    display: block;
    font-size: 0.98rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.25;
}

.rules-overviewText {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    line-height: 1.55;
}

.rules-overviewCount {
    display: inline-flex;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* CONTENT */

.rules-content {
    padding: 4px 0 70px;
}

.rules-empty {
    padding: 34px 24px;
    border-radius: 24px;
    text-align: center;
    background: var(--rules-surface);
    border: 1px solid var(--rules-border);
    box-shadow: var(--rules-shadow-sm);
}

.rules-empty h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.rules-empty p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.rules-grid {
    display: grid;
    gap: 24px;
}

.rules-section {
    position: relative;
    border-radius: 26px;
    padding: 24px;
    background:
        radial-gradient(40% 22% at 50% 0%, rgba(48, 177, 41, 0.04), rgba(48, 177, 41, 0) 75%),
        rgba(18, 18, 22, 0.88);
    border: 1px solid var(--rules-border);
    box-shadow: var(--rules-shadow-md);
    overflow: hidden;
    scroll-margin-top: 120px;
}

.rules-sectionTop {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.rules-sectionLeft {
    min-width: 0;
}

.rules-sectionHeading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rules-sectionIcon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.rules-sectionBullet {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #3be22e;
    box-shadow: 0 0 18px rgba(48, 177, 41, 0.45);
    flex-shrink: 0;
}

.rules-sectionTitleWrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rules-sectionMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rules-sectionTitle {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
}

.rules-sectionRange {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.16);
    color: rgba(48, 177, 41, 0.96);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rules-sectionDesc {
    margin: 14px 0 0;
    font-size: 0.96rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.rules-sectionRight {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.rules-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 800;
}

.rules-card-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-delete-form,
.rule-delete-form {
    margin: 0;
}

.category-delete-btn,
.rule-delete-btn {
    background: rgba(220, 78, 78, 0.12);
    border-color: rgba(220, 78, 78, 0.22);
    color: #fff;
}

.rule-edit-btn,
.category-edit-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.rules-card {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rules-card-empty {
    padding: 22px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.94rem;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-item {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rule-item:first-child {
    border-top: 0;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rule-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.rule-main-text,
.rule-text {
    min-width: 0;
}

.rule-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rule-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.16);
    color: rgba(48, 177, 41, 0.96);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.rule-content {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.97rem;
    line-height: 1.9;
    word-break: break-word;
}

.rule-content strong {
    color: #fff;
    font-weight: 900;
}

.rule-content em {
    color: rgba(255, 255, 255, 0.92);
}

.rule-content u {
    text-decoration-color: rgba(48, 177, 41, 0.55);
    text-underline-offset: 3px;
}

.rule-inline-code {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff0d8;
    font-size: 0.88em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rule-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.rule-note {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(70% 120% at 0% 0%, rgba(48, 177, 41, 0.1), rgba(48, 177, 41, 0) 45%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-note-kicker {
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(48, 177, 41, 0.95);
}

.rule-note-text {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
    line-height: 1.8;
}

/* ADMIN MODAL */

.rules-admin-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.rules-admin-modal.open {
    display: block;
}

.rules-admin-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 55% at 50% 8%, rgba(48, 177, 41, 0.18), rgba(5, 5, 9, 0) 58%),
        rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rules-admin-dialog {
    position: relative;
    width: min(940px, calc(100% - 36px));
    margin: 92px auto 28px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(10, 10, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.rules-admin-header {
    padding: 18px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rules-admin-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
}

.rules-admin-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.rules-admin-close:hover {
    background: rgba(48, 177, 41, 0.14);
    border-color: rgba(48, 177, 41, 0.4);
    transform: translateY(-1px);
}

.rules-admin-tabs {
    padding: 0 18px 12px;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rules-admin-tab {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.rules-admin-tab:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.rules-admin-tab-active {
    background: linear-gradient(135deg, #3be22e, #30b129);
    border-color: rgba(48, 177, 41, 0.3);
    color: #fff;
}

.rules-admin-body {
    padding: 0 18px 18px;
    overflow: auto;
}

.rules-admin-panel {
    display: none;
}

.rules-admin-panel-active {
    display: block;
}

.rules-admin-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-admin-field label {
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
}

.rules-admin-field input,
.rules-admin-field select,
.rules-admin-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    padding: 12px 12px;
    outline: none;
    font-family: var(--main-font);
}

.rules-admin-field input[type="file"] {
    padding: 10px 12px;
}

.rules-admin-field textarea {
    resize: vertical;
    min-height: 110px;
}

.rules-admin-field input:focus,
.rules-admin-field select:focus,
.rules-admin-field textarea:focus {
    border-color: rgba(48, 177, 41, 0.24);
    box-shadow: 0 0 0 3px rgba(48, 177, 41, 0.08);
}

.rules-admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.rules-admin-submit {
    appearance: none;
    border: 1px solid rgba(48, 177, 41, 0.3);
    cursor: pointer;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-family: var(--main-font);
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #3be22e, #30b129);
    box-shadow: 0 10px 24px rgba(48, 177, 41, 0.16);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.rules-admin-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.icon-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.icon-choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.icon-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(48, 177, 41, 0.22);
}

.icon-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.icon-choice span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
}

.icon-choice img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.icon-choice:has(input:checked) {
    border-color: rgba(48, 177, 41, 0.3);
    background: rgba(48, 177, 41, 0.1);
    box-shadow: 0 0 0 1px rgba(48, 177, 41, 0.12) inset;
}

#rulesContent.is-leaving {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#rulesContent.is-entering {
    opacity: 0;
    transform: translateY(6px);
}

.rules-admin-field select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    padding: 12px 12px;
    outline: none;
    font-family: var(--main-font);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.rules-admin-field select option {
    background: #111318;
    color: #ffffff;
}

.rules-admin-field select option:checked {
    background: #30b129;
    color: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .rules-hero-top {
        grid-template-columns: 1fr;
    }

    .rules-hero-actions {
        width: 100%;
        align-items: flex-start;
    }

    .rules-type-switch {
        justify-content: flex-start;
    }

    .rules-categoryOverview {
        grid-template-columns: 1fr 1fr;
    }

    .rules-sectionTop {
        grid-template-columns: 1fr;
    }

    .rules-sectionRight {
        width: 100%;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .rules-body {
        padding-top: 88px;
    }

    .rules-shell {
        width: min(100% - 24px, 1240px);
    }

    .rules-hero {
        padding-top: 24px;
    }

    .rules-categoryOverview {
        grid-template-columns: 1fr;
    }

    .rules-overview-wrap {
        padding: 18px;
        border-radius: 20px;
    }

    .rules-section {
        padding: 18px;
        border-radius: 20px;
    }

    .rule-item {
        padding: 18px;
    }

    .rule-main {
        grid-template-columns: 1fr;
    }

    .rule-actions {
        width: 100%;
    }

    .rules-admin-dialog {
        width: min(100% - 16px, 940px);
        margin: 72px auto 16px;
        max-height: calc(100vh - 88px);
    }
}

@media (max-width: 520px) {
    .rules-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    .rules-title {
        line-height: 1.02;
    }

    .rules-type-switch {
        width: 100%;
    }

    .rules-type-btn,
    .rules-admin-btn,
    .rule-edit-btn,
    .rule-delete-btn,
    .category-delete-btn,
    .rules-admin-submit {
        width: 100%;
    }

    .rules-card-admin,
    .rule-actions,
    .rules-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rules-overviewCard {
        padding: 16px;
    }

    .rules-sectionHeading {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}