:root {
    --board-card-width:
        clamp(
            105px,
            13vh,
            145px
        );

    --board-card-height:
        calc(
            var(--board-card-width)
            * 1.5
        );

    --hand-card-width:
        clamp(
            135px,
            15vw,
            180px
        );

    --hand-card-height:
        calc(
            var(--hand-card-width)
            * 1.5
        );

    --hand-strip-height:
        clamp(
            64px,
            8vh,
            82px
        );

    --inspector-card-width:
        clamp(
            170px,
            17vw,
            220px
        );
}

body {
    margin: 0;
    background: #151515;
    color: #ddd;
    font-family: sans-serif;
}

hr {
    margin: 5px 0;
    border: none;
    border-top:
        1px solid
        rgba(220, 200, 150, 0.22);
}

#logstate {
    opacity: 0.55;
    font-size: 0.7rem;
}

#logstate:hover {
    opacity: 0.85;
}

#game-layout {
    display: grid;

    grid-template-columns:
        170px
        minmax(0, 1fr)
        240px;

    min-height: 100vh;

    background: #151515;
}

#game-sidebar {
    position: sticky;
    top: 0;

    height: 100vh;

    box-sizing: border-box;

    padding: 14px 12px;

    background:
        #101010;

    border-right:
        1px solid
        rgba(220, 200, 150, 0.22);

    overflow-y: auto;

    user-select: none;
}

#game-main {
    min-width: 0;

    height: 100vh;
    box-sizing: border-box;

    padding: 6px 16px 0;

    display: grid;

    grid-template-rows:
        minmax(0, 1fr)
        auto;

    overflow: hidden;
}

#game-info {
    margin-bottom: 14px;

    font-family:
        Georgia,
        serif;

    color: #ddd;
}

.game-info-title {
    display: block;

    width: 100%;
    max-width: 140px;
    height: auto;

    margin: 0 auto 14px;

    object-fit: contain;
}

.game-info-section {
    margin-bottom: 14px;

    padding: 8px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid
        rgba(220, 200, 150, 0.14);

    border-radius: 6px;
}

.game-info-section-title {
    margin-bottom: 6px;

    font-size: 0.78rem;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color:
        rgba(215, 195, 150, 0.75);
}

.game-info-player {
    font-size: 1rem;
    font-weight: bold;
}

.game-info-highlight {
    margin: 2px 0 8px;

    font-size: 0.75rem;

    color:
        rgba(185, 210, 150, 0.85);
}

.game-info-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 8px;

    margin: 4px 0;

    font-size: 0.80rem;
}

.game-info-resource-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin: 4px 0;

    font-size: 0.80rem;
}

.game-info-resource-name {
    display: flex;
    align-items: center;

    gap: 5px;
}

.game-info-resource-icon {
    width: 13px;
    height: 13px;

    object-fit: contain;
}

.game-info-resource-value {
    font-weight: bold;
}

.game-info-scale {
    margin-top: 4px;

    text-align: center;

    font-size: 1.15rem;
    font-weight: bold;

    color:
        rgba(235, 220, 185, 0.95);
}

#board-area {
    min-height: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 5px 0;

    box-sizing: border-box;

    overflow: visible;
}

#opponent-board,
#player-board {
    margin: 4px auto;
    padding: 6px 8px;
    background: #1d1d1d;
    border-radius: 8px;
    width: fit-content;
}

#opponent-support,
#opponent-combat,
#player-combat,
#player-support {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            var(--board-card-width)
        );
    gap: 10px;
    margin: 4px 0;
}

.board-row {
    display: grid;

    grid-template-columns:
        28px auto;

    align-items: center;

    column-gap: 8px;
}

.board-row-label-slot {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
}

.board-row-label {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    opacity: 0.72;
}

.board-row-label-icon {
    width: 20px;
    height: 20px;

    object-fit: contain;

    display: block;
}

.board-row-label:hover {
    opacity: 1;
}

#hand {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    height: var(--hand-strip-height);
    margin: 8px 0 0;
    overflow-x: auto;
    overflow-y: visible;

    padding-bottom: 6px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(110, 90, 55, 0.75)
        rgba(20, 18, 12, 0.10);
    position: relative;
    z-index: 100;
}

#hand::-webkit-scrollbar {
    height: 5px;
}

#hand::-webkit-scrollbar-track {
    background:
        rgba(20, 18, 12, 0.10);

    border-radius: 999px;
}

#hand::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            to right,
            rgba(125, 105, 70, 0.85),
            rgba(75, 60, 38, 0.85)
        );

    border-radius: 999px;

    border:
        1px solid
        rgba(220, 205, 165, 0.25);
}

#hand::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            to right,
            rgba(145, 120, 78, 0.95),
            rgba(90, 70, 42, 0.95)
        );
}

#cancel-play:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot {
    width:
        var(--board-card-width);

    height:
        var(--board-card-height);
    padding: 0;
    border: none;
    background-color: transparent;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;

    border-radius: 10px;
}

.slot.empty {
    color: transparent;
}

.slot.valid-play-target {
    position: relative;

    outline:
        2px solid
        rgba(210, 185, 105, 0.9);

    outline-offset: 2px;

    box-shadow:
        0 0 10px
        rgba(210, 185, 105, 0.45);

    transition:
        outline-color 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.slot.valid-play-target:hover {
    outline-color:
        rgba(240, 215, 135, 1);

    box-shadow:
        0 0 15px
        rgba(225, 195, 110, 0.75);

    filter:
        brightness(1.08);
}

.slot.valid-sacrifice-target {
    outline-color:
        rgba(160, 65, 55, 0.95);

    box-shadow:
        0 0 11px
        rgba(150, 45, 40, 0.55);
}

.slot.valid-sacrifice-target:hover {
    outline-color:
        rgba(205, 80, 65, 1);

    box-shadow:
        0 0 16px
        rgba(190, 55, 45, 0.78);
}

.hand-card {
    position: relative;

    width:
        var(--hand-card-width);

    height:
        var(--hand-strip-height);

    flex:
        0 0
        var(--hand-card-width);

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

.hand-card-window {
    position: relative;

    width:
        var(--hand-card-width);

    height:
        var(--hand-strip-height);

    overflow: hidden;
}

.hand-card-window
.card-visual {
    width:
        var(--hand-card-width);
}

.hand-card-window > .card-visual {
    position: absolute;

    left: 0;
    top: 0;
}

.card-preview {
    position: fixed;

    z-index: 5000;

    opacity: 0;

    transform:
        translate(
            -50%,
            -100%
        );

    pointer-events: none;

    transition:
        opacity 0.12s ease;
}

.card-preview.visible {
    opacity: 1;
}

.card-preview .card-visual {
    width:
        clamp(
            240px,
            24vw,
            270px
        );

    filter:
        drop-shadow(
            0 8px 18px
            rgba(0, 0, 0, 0.75)
        );
}

.hand-card.selected {
    outline: 3px solid #d28f00;
}

.card-visual {
    position: relative;

    width: 180px;
    aspect-ratio: 2 / 3;

    overflow: visible;

    font-family: Georgia, serif;
    color: #241b12;

    user-select: none;
}


/*
 * Rahmenbild
 */
.card-frame {
    display: block;
    position: absolute;
    
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: fill;

    z-index: 10;

    pointer-events: none;
}


/*
 * Artwork-Bereich
 */
.card-artwork {
    position: absolute;

    left: 9%;
    right: 9%;

    top: 13.4%;
    height: 49%;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    background-color: #161914;

    z-index: 1;
}


/*
 * Kartenname
 */
.card-name {
    position: absolute;

    left: 11%;
    right: 11%;

    top: 5.5%;

    height: 6%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.05rem;
    font-weight: bold;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    z-index: 20;
}


/*
 * Kosten
 */
.card-cost {
    position: absolute;

    top: 15.5%;
    right: 11%;

    display: flex;
    gap: 1px;
    align-items: center;

    padding: 2px 3px;

    background: rgba(255, 255, 255, 0.18);

    border: 1px solid rgba(230, 220, 190, 0.55);
    border-radius: 5px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4);

    z-index: 20;
}

.card-cost-icon {
    width: 15px;
    height: 15px;

    object-fit: contain;

    display: block;
}

/*
 * Text-Area für Regeln und Flavour
 */
.card-text-area {
    position: absolute;

    left: 12%;
    right: 12%;

    top: 67%;
    bottom: 13.5%;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 4px;

    z-index: 20;

    overscroll-behavior: contain;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(110, 90, 55, 0.75)
        rgba(20, 18, 12, 0.10);
}

.card-text-area::-webkit-scrollbar {
    width: 5px;
}

.card-text-area::-webkit-scrollbar-track {
    background:
        rgba(20, 18, 12, 0.10);

    border-radius: 999px;
}

.card-text-area::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            to bottom,
            rgba(125, 105, 70, 0.85),
            rgba(75, 60, 38, 0.85)
        );

    border-radius: 999px;

    border:
        1px solid
        rgba(220, 205, 165, 0.25);
}

.card-text-area::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            to bottom,
            rgba(145, 120, 78, 0.95),
            rgba(90, 70, 42, 0.95)
        );
}


/*
 * Effekt-/Regeltext
 */
.card-rules {
    font-size: 0.80rem;
    line-height: 1.25;

    text-align: left;
}

.card-rules {
    overscroll-behavior: contain;
}

.rules-line {
    display: block;

    margin-bottom: 4px;

    line-height: 1.25;
}

.rules-line:last-child {
    margin-bottom: 0;
}

.rules-trigger {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    vertical-align: middle;
}

.rules-trigger-icon {
    width: 16px;
    height: 16px;

    object-fit: contain;

    vertical-align: middle;
}

.rules-trigger-separator {
    vertical-align: middle;
}

.rules-text {
    vertical-align: middle;
}

.rules-value {
    margin:
        0 2px;

    font-weight: bold;

    vertical-align: middle;
}

.rules-token-separator {
    margin:
        0 4px;

    opacity: 0.6;

    vertical-align: middle;
}

.rules-status-token.status-negative {
    background:
        rgba(65, 24, 24, 0.82);

    border-color:
        rgba(170, 75, 75, 0.68);
}

.rules-status-token.status-positive {
    background:
        rgba(28, 58, 30, 0.82);

    border-color:
        rgba(105, 160, 105, 0.68);
}

.rules-status-token.status-neutral {
    background:
        rgba(70, 58, 30, 0.76);

    border-color:
        rgba(190, 155, 75, 0.62);
}



/*
 * Aktive Status
 */
.card-status {
    position: absolute;

    left: 10%;
    right: 10%;
    top: 58%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 3px;

    z-index: 30;

    pointer-events: auto;
}

.card-status-icon-wrapper {
    position: relative;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2px;

    background:
        rgba(20, 20, 18, 0.72);

    border:
        1px solid
        rgba(230, 220, 190, 0.45);

    border-radius: 5px;

    cursor: help;

    pointer-events: auto;
}

.card-status-icon-wrapper.status-negative {
    background:
        rgba(72, 22, 22, 0.82);

    border-color:
        rgba(175, 85, 85, 0.68);
}

.card-status-icon-wrapper.status-positive {
    background:
        rgba(30, 58, 32, 0.82);

    border-color:
        rgba(115, 165, 105, 0.68);
}

.card-status-icon-wrapper.status-neutral {
    background:
        rgba(28, 27, 23, 0.82);

    border-color:
        rgba(205, 185, 140, 0.50);
}

.card-status-icon {
    width: 20px;
    height: 20px;

    object-fit: contain;

    display: block;

    filter:
        invert(1)
        opacity(0.9);

    pointer-events: none;
}

.card-status-count {
    position: absolute;

    right: -4px;
    bottom: -4px;

    min-width: 12px;
    height: 12px;

    padding: 0 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.42rem;
    font-weight: bold;
    line-height: 1;

    color: #eee;

    background:
        rgba(20, 18, 14, 0.92);

    border-radius: 6px;

    pointer-events: none;
}

.card-status-charges {
    position: absolute;

    left: 50%;
    bottom: -11px;

    transform:
        translateX(-50%);

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 2px;

    min-width: 18px;

    padding:
        1px 3px;

    background:
        rgba(20, 18, 14, 0.92);

    border:
        1px solid
        rgba(190, 155, 75, 0.55);

    border-radius:
        5px;

    color: #eee;

    font-size:
        0.48rem;

    line-height: 1;

    pointer-events: none;
}

.card-status-charges-icon {
    width: 9px;
    height: 9px;

    object-fit: contain;

    filter:
        invert(1)
        opacity(0.9);
}

.card-status-charges-value {
    font-weight: bold;
}

/*
 * Flavourtext
 */
.card-flavour {
    margin-top: 6px;
    padding-top: 5px;

    border-top:
        1px solid
        rgba(80, 60, 35, 0.28);

    font-size: 0.64rem;
    line-height: 1.2;

    font-style: italic;

    text-align: center;

    color:
        rgba(36, 27, 18, 0.75);
}


/*
 * Angriff / Leben
 */
.card-stat {
    position: absolute;

    bottom: 5.6%;

    width: 17%;
    height: 7%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.95rem;
    font-weight: bold;

    color: #efe5ca;

    z-index: 20;
}

.card-attack {
    left: 8%;
}

.card-health {
    right: 8%;
}

.status-tooltip {
    position: fixed;

    z-index: 10000;

    min-width: 130px;
    max-width: 240px;

    padding: 7px 9px;

    color: #eee;

    background:
        rgba(20, 18, 14, 0.96);

    border:
        1px solid
        rgba(210, 190, 145, 0.6);

    border-radius: 6px;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.55);

    font-family:
        Georgia,
        serif;

    font-size: 0.72rem;
    line-height: 1.3;

    pointer-events: none;

    opacity: 0;

    transform:
        translate(
            -50%,
            -100%
        );

    transition:
        opacity 0.12s ease;
}

.status-tooltip-description {
    margin-bottom: 6px;

    font-size: 0.66rem;
    line-height: 1.3;

    color:
        rgba(225, 220, 205, 0.85);
}

.status-tooltip.visible {
    opacity: 1;
}

.status-tooltip-title {
    font-weight: bold;

    margin-bottom: 3px;

    color:
        rgba(235, 220, 185, 1);
}

.status-tooltip-count {
    margin-bottom: 5px;

    font-size: 0.62rem;

    color:
        rgba(220, 215, 200, 0.75);
}

.status-tooltip-entry {
    padding: 4px 0;

    border-top:
        1px solid
        rgba(230, 220, 190, 0.15);
}

.status-tooltip-entry:first-of-type {
    border-top: none;
}

.rules-status-token {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    min-height: 22px;

    margin:
        0 3px;

    padding:
        2px 5px 2px 3px;

    box-sizing: border-box;

    border-radius: 4px;

    vertical-align: middle;

    color: #eee;

    white-space: nowrap;
}

.rules-status-icon {
    width: 15px;
    height: 15px;

    object-fit: contain;

    display: block;

    filter:
    invert(1)
    opacity(0.9);
}

.rules-status-label {
    font-size: 0.68rem;
    line-height: 1;

    color: #eee;
}

.rules-rule-icon-token {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    margin:
        0 2px;

    vertical-align: middle;
}

.rules-rule-icon {
    width: 15px;
    height: 15px;

    object-fit: contain;

    display: block;
}


/*
 *  Andere Schulen
 */

.card-school-arcanism
.card-name {
    top: 5%;
}

.card-school-arcanism
.card-stat {
    bottom: 4.2%;

    color:
        #241b12;
}

.card-school-arcanism
.card-artwork {
    top: 13.0%;
    height: 50.4%;
}

.card-school-arcanism
.card-cost {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(20, 30, 240, 0.55);
}



/*
 * Buttons selbst sollen nicht mehr
 * wie klassische HTML-Buttons aussehen.
 */
.hand-card {
    width: auto;
    min-width: 0;
    min-height: 0;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

.hand-card.selected
.card-visual {
    filter:
        drop-shadow(
            0 0 8px
            rgba(230, 210, 130, 0.9)
        );
}

/*
 * Board-Slot mit Karte
 */
.slot:has(.card-visual) {
    padding: 0;

    border: none;
    background-color: transparent;
}


/*
 * Card-Inspector
 */
#card-inspector {
    position: sticky;
    top: 0;

    height: 100vh;

    box-sizing: border-box;

    padding: 14px 12px;

    background:
        #101010;

    border-left:
        1px solid
        rgba(220, 200, 150, 0.22);

    overflow-y: auto;
}

#card-inspector-content {
    display: flex;

    justify-content: center;
    align-items: flex-start;

    min-height: 100%;
}

.card-inspector-placeholder {
    margin-top: 30px;

    font-family:
        Georgia,
        serif;

    font-size: 0.72rem;

    text-align: center;

    color:
        rgba(220, 210, 190, 0.45);
}

.card-inspector-detail {
    width: 100%;

    box-sizing: border-box;

    font-family:
        Georgia,
        serif;

    color:
        rgba(230, 225, 210, 0.92);
}

.card-inspector-title {
    margin:
        4px 0 10px;

    text-align: center;

    font-size:
        1.15rem;

    font-weight: normal;

    color:
        rgba(235, 220, 185, 1);
}

.card-inspector-artwork {
    width: 100%;
    aspect-ratio: 10 / 8;

    margin-bottom: 12px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    border-radius: 8px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            black 68%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            black 68%,
            transparent 100%
        );
}

.card-inspector-section {
    margin:
        0 0 12px;

    padding:
        0 0 10px;

    border-bottom:
        1px solid
        rgba(220, 200, 150, 0.18);
}

.card-inspector-section-title {
    margin:
        0 0 7px;

    font-size:
        0.68rem;

    text-transform: uppercase;

    letter-spacing:
        0.08em;

    color:
        rgba(205, 185, 140, 0.75);
}

.card-inspector-info-row {
    display: flex;

    justify-content:
        space-between;

    gap: 10px;

    margin:
        4px 0;

    font-size:
        0.76rem;
}

.card-inspector-info-label {
    color:
        rgba(215, 210, 195, 0.72);
}

.card-inspector-info-value {
    font-weight: bold;

    color:
        rgba(240, 230, 205, 0.95);
}

.card-inspector-resource {
    display: flex;

    align-items: center;

    gap: 6px;

    margin:
        5px 0;

    font-size:
        0.75rem;
}

.card-inspector-resource-icon {
    width: 17px;
    height: 17px;

    object-fit: contain;
}

.card-inspector-rule {
    margin:
        7px 0;

    padding:
        6px 7px;

    background:
        rgba(255, 255, 255, 0.025);

    border-radius:
        5px;
}

.card-inspector-rule-header {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom:
        4px;

    font-size:
        0.69rem;

    font-weight: bold;

    color:
        rgba(225, 210, 175, 0.92);
}

.card-inspector-rule-icon {
    width: 19px;
    height: 19px;

    object-fit: contain;

    padding: 2px;

    background:
        rgba(220, 210, 185, 0.82);

    border-radius: 4px;

    box-shadow:
        0 0 4px
        rgba(220, 200, 150, 0.16);
}

.card-inspector-rule-description {
    font-size:
        0.72rem;

    line-height:
        1.35;

    color:
        rgba(225, 220, 205, 0.86);

    padding: 0 0 0 10px;
}

.card-inspector-status {
    margin:
        8px 0;
}

.card-inspector-status-header {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        3px 7px 3px 4px;

    border:
        1px solid
        rgba(205, 185, 140, 0.45);

    border-radius:
        7px;

    font-size:
        0.72rem;

    font-weight: bold;
}

.card-inspector-status-header.status-negative {
    background:
        rgba(65, 24, 24, 0.50);

    border-color:
        rgba(170, 75, 75, 0.65);
}

.card-inspector-status-header.status-positive {
    background:
        rgba(28, 58, 30, 0.50);

    border-color:
        rgba(105, 160, 105, 0.65);
}

.card-inspector-status-header.status-neutral {
    background:
        rgba(70, 58, 30, 0.46);

    border-color:
        rgba(190, 155, 75, 0.62);
}

.card-inspector-status-icon {
    width: 20px;
    height: 20px;

    object-fit: contain;

    padding: 2px;

    background:
        rgba(225, 215, 190, 0.84);

    border-radius: 4px;

    box-sizing: border-box;
}

.card-inspector-status-description {
    margin:
        5px 0 3px;

    font-size:
        0.70rem;

    line-height:
        1.35;
}

.card-inspector-status-instance {
    margin-left:
        8px;

    padding:
        2px 0 2px 7px;

    border-left:
        1px solid
        rgba(220, 200, 150, 0.18);

    font-size:
        0.66rem;

    color:
        rgba(215, 210, 195, 0.78);
}

.card-inspector-flavour {
    margin:
        14px 4px;

    font-size:
        0.68rem;

    line-height:
        1.4;

    text-align: center;

    font-style: italic;

    color:
        rgba(205, 195, 175, 0.62);
}


/*
 * Kleine Board-Version
 */
.card-visual--compact {
    width:
        var(--board-card-width);
}

.card-visual--compact
.card-name {
    font-size: 0.68rem;
}

.card-visual--compact
.card-cost {
    font-size: 0.45rem;
}

.card-visual--compact
.card-rules {
    font-size: 0.54rem;
}

.card-visual--compact
.card-status {
    font-size: 0.42rem;
}

.card-visual--compact
.card-stat {
    font-size: 0.68rem;
}

.card-visual--compact
.card-cost-icon {
    width: 9px;
    height: 9px;
}

.card-visual--compact
.card-status-icon-wrapper {
    width: 13px;
    height: 13px;

    padding: 1px;

    border-radius: 3px;
}

.card-visual--compact
.card-status-icon {
    width: 11px;
    height: 11px;
}

.card-visual--compact
.card-status-count {
    right: -3px;
    bottom: -3px;

    min-width: 9px;
    height: 9px;

    padding: 0 1px;

    font-size: 0.30rem;
}

.card-visual--compact
.card-flavour {
    font-size: 0.46rem;
}

.card-visual--compact
.card-text-area {
    padding-right: 2px;
}

.card-visual--compact
.rules-trigger-icon {
    width: 9px;
    height: 9px;
}

.card-visual--compact
.rules-status-token {
    min-height: 16px;

    margin:
        0 2px;

    gap: 2px;

    padding:
        1px 3px 1px 2px;

    border-radius: 3px;
}

.card-visual--compact
.rules-status-icon {
    width: 11px;
    height: 11px;
}

.card-visual--compact
.rules-rule-icon-token {
    width: 14px;
    height: 14px;

    margin: 0 1px;
}

.card-visual--compact
.rules-rule-icon {
    width: 10px;
    height: 10px;
}

.card-visual--compact
.rules-trigger-icon {
    width: 13px;
    height: 13px;
}

.card-visual--compact
.card-status-charges {
    bottom: -9px;

    min-width: 14px;

    padding:
        1px 2px;

    gap: 1px;

    font-size:
        0.34rem;
}

.card-visual--compact
.card-status-charges-icon {
    width: 7px;
    height: 7px;
}

.card-visual--compact
.rules-status-label {
    font-size: 0.42rem;
}