/* ==========================================================================
   Sistema de Reparo (/sistema-de-reparo, 2026-11-12). Só esta página carrega este arquivo (link no topo da
   view). Mesma linguagem do tema épico (tcg-epic.css): tinta escura, molduras bronze com cantos dourados,
   títulos serifados dourados. Tudo escopado em .tcg-rep / .tcg-rep-page.
   ========================================================================== */

.tcg-rep-page {
    --rep-bronze: #c59768;
    --rep-gold: #f4d2a1;
    --rep-cream: #fde6ca;
    --rep-text: rgba(251, 249, 247, .86);
    --rep-muted: rgba(251, 249, 247, .58);
    --rep-line: rgba(197, 151, 104, .32);
    --rep-up: #63d99a;
    --rep-down: #ff8f5a;
    --rep-flat: #b9b2a8;
    --rep-sans: "Amazon Ember", "IBM Plex Sans", Arial, sans-serif;
    --rep-serif: Ellipsis, JapanLight, TL, Times, "Times New Roman", serif;
    --rep-serif-head: Ellipsis, JapanHeavy, TLHeader, Times, "Times New Roman", serif;
}

/* banner: a base da arte dissolve no fundo, como /news e /guides */
.id_tcg_reparo_hero > .ags-ContentModule-backgroundContainer {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.id_tcg_reparo_hero .ags-ContentModule-backgroundContainer-background {
    background-size: cover;
    background-position: center top;
}

.tcg-rep-intro {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(251, 249, 247, .8);
}

/* ---------- base ---------- */
.tcg-rep {
    position: relative;
    z-index: 1;
    padding: 8px 16px 96px;
    color: var(--rep-text);
    font-family: var(--rep-sans);
    font-size: 15px;
    line-height: 1.5;
}

.tcg-rep *,
.tcg-rep *::before,
.tcg-rep *::after {
    box-sizing: border-box;
}

/* o tema T&L poe margem lateral em todo <article>/<section> */
.tcg-rep article,
.tcg-rep section {
    margin: 0;
}

.tcg-rep-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* coluna unica que nao cresce com o conteudo (a tabela rola dentro do proprio quadro) */
.tcg-rep-grupos,
.tcg-rep-mats {
    grid-template-columns: minmax(0, 1fr);
}

.tcg-rep-wrap > *,
.tcg-rep-grupos > *,
.tcg-rep-mats > * {
    min-width: 0;
}

.tcg-rep a {
    color: inherit;
    text-decoration: none;
}

.tcg-rep a:hover,
.tcg-rep a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tcg-rep button,
.tcg-rep input,
.tcg-rep select {
    font: inherit;
    color: inherit;
}

.tcg-rep :focus-visible {
    outline: 2px solid var(--rep-gold);
    outline-offset: 2px;
}

.tcg-rep-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* moldura bronze com cantos dourados (mesma dos cards do tema) */
.tcg-rep-frame {
    position: relative;
    padding: 18px 20px;
    border: 1px solid var(--rep-line);
    background: linear-gradient(160deg, rgba(22, 17, 26, .9), rgba(10, 9, 12, .95));
    box-shadow: 0 20px 50px -26px rgba(0, 0, 0, .9);
}

.tcg-rep-frame::before,
.tcg-rep-frame::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--rep-gold);
    opacity: .7;
    pointer-events: none;
}

.tcg-rep-frame::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.tcg-rep-frame::after {
    right: -1px;
    bottom: -1px;
    border-width: 0 2px 2px 0;
}

.tcg-rep-h2 {
    margin: 0 0 6px;
    font-family: var(--rep-serif-head);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--rep-gold);
    background: linear-gradient(118.94deg, #fde6ca -6.67%, rgba(245, 225, 200, 0) 31.81%), linear-gradient(0deg, #c59768, #c59768);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tcg-rep-h3 {
    margin: 18px 0 10px;
    font-family: var(--rep-serif);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rep-bronze);
}

.tcg-rep-h3 small {
    margin-left: 6px;
    font-family: var(--rep-sans);
    font-size: .8rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rep-muted);
}

.tcg-rep-lead {
    margin: 0 0 14px;
    color: var(--rep-muted);
}

.tcg-rep-nota {
    margin: 12px 0 0;
    font-size: .85rem;
    color: var(--rep-muted);
}

.tcg-rep-vazio {
    margin: 0;
    color: var(--rep-muted);
}

.tcg-rep-mudo {
    color: var(--rep-muted);
}

.tcg-rep-carregando,
.tcg-rep-erro {
    text-align: center;
    color: var(--rep-muted);
}

.tcg-rep-carregando p,
.tcg-rep-erro p {
    margin: 0;
}

/* cores dos nomes, como o jogo e a PW Database */
.tcg-rep-nome {
    color: #f1ece4;
    font-weight: 600;
}

.tcg-rep-cor-0 { color: #f1ece4; }
.tcg-rep-cor-2 { color: #4cf09a; }
.tcg-rep-cor-3 { color: #7cb8ff; }
.tcg-rep-cor-4 { color: #b87cff; }
.tcg-rep-cor-5 { color: #ffd95a; }
.tcg-rep-cor-6 { color: #ff8a3d; }

.tcg-rep-ico {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid rgba(197, 151, 104, .45);
    background: #0b0a0d;
    image-rendering: auto;
}

.tcg-rep-ico--g {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.tcg-rep-ico--p {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
}

/* ---------- status ---------- */
.tcg-rep-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 12px 18px;
    font-size: .92rem;
}

.tcg-rep-status b {
    color: var(--rep-cream);
    font-variant-numeric: tabular-nums;
}

.tcg-rep-sep {
    width: 4px;
    height: 4px;
    background: var(--rep-bronze);
    transform: rotate(45deg);
    opacity: .7;
}

.tcg-rep-vivo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rep-serif);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rep-up);
}

.tcg-rep-vivo i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rep-up);
    box-shadow: 0 0 0 0 rgba(99, 217, 154, .6);
    animation: tcgRepPulso 2s ease-out infinite;
}

.tcg-rep-vivo--off {
    color: var(--rep-down);
}

.tcg-rep-vivo--off i {
    background: var(--rep-down);
    animation: none;
}

@keyframes tcgRepPulso {
    0% { box-shadow: 0 0 0 0 rgba(99, 217, 154, .55); }
    80%, 100% { box-shadow: 0 0 0 9px rgba(99, 217, 154, 0); }
}

.tcg-rep-lido {
    color: var(--rep-muted);
}

.tcg-rep-aviso {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--rep-down);
    background: rgba(255, 143, 90, .08);
    font-size: .9rem;
}

.tcg-rep-aviso--info {
    border-left-color: var(--rep-bronze);
    background: rgba(197, 151, 104, .08);
}

.tcg-rep-ok {
    margin: 6px 0 0;
    font-size: .88rem;
    color: var(--rep-up);
}

/* ---------- como funciona ---------- */
.tcg-rep-como summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--rep-serif);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rep-gold);
}

.tcg-rep-como summary::-webkit-details-marker {
    display: none;
}

.tcg-rep-como summary::after {
    content: "+";
    float: right;
    font-family: var(--rep-sans);
    font-size: 1.1rem;
    line-height: 1;
    color: var(--rep-bronze);
}

.tcg-rep-como[open] summary::after {
    content: "\2212";
}

.tcg-rep-como ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tcg-rep-como li {
    display: flex;
    gap: 12px;
}

.tcg-rep-como h3 {
    margin: 2px 0 4px;
    font-size: .95rem;
    color: var(--rep-cream);
}

.tcg-rep-como p {
    margin: 0;
    font-size: .88rem;
    color: var(--rep-muted);
}

.tcg-rep-como-n {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--rep-bronze);
    background: rgba(197, 151, 104, .08);
    font-family: var(--rep-serif-head);
    line-height: 1;
    color: var(--rep-gold);
}

/* ---------- destaques ---------- */
.tcg-rep-dests {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tcg-rep-dest {
    border-top: 2px solid var(--rep-bronze);
}

.tcg-rep-dest h3 {
    margin: 0 0 6px;
    font-family: var(--rep-serif);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tcg-rep-dest p {
    margin: 0;
    font-size: .92rem;
}

.tcg-rep-dest small {
    display: block;
    margin-top: 8px;
    font-size: .82rem;
    color: var(--rep-muted);
}

.tcg-rep-dest--sobe { border-top-color: var(--rep-up); }
.tcg-rep-dest--sobe h3 { color: var(--rep-up); }
.tcg-rep-dest--cai { border-top-color: var(--rep-down); }
.tcg-rep-dest--cai h3 { color: var(--rep-down); }
.tcg-rep-dest--preco h3 { color: var(--rep-gold); }

/* ---------- calculadora ---------- */
.tcg-rep-ac-box {
    position: relative;
    max-width: 560px;
}

.tcg-rep input[type="search"],
.tcg-rep input[type="number"],
.tcg-rep select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(197, 151, 104, .5);
    border-radius: 0;
    background: rgba(8, 7, 10, .85);
    color: #fff;
    font-size: 16px;
}

.tcg-rep input[type="search"]::placeholder {
    color: rgba(251, 249, 247, .45);
}

.tcg-rep input:focus,
.tcg-rep select:focus {
    border-color: var(--rep-gold);
    outline: none;
    box-shadow: 0 0 0 1px rgba(244, 210, 161, .35);
}

.tcg-rep-ac {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 330px;
    margin: 4px 0 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--rep-line);
    background: #0e0c11;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
}

.tcg-rep-ac li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    cursor: pointer;
}

.tcg-rep-ac li small {
    margin-left: auto;
    color: var(--rep-muted);
    white-space: nowrap;
}

.tcg-rep-ac li:hover,
.tcg-rep-ac li.is-on {
    background: rgba(197, 151, 104, .14);
}

.tcg-rep-calc-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
}

.tcg-rep-calc-item small {
    color: var(--rep-muted);
}

.tcg-rep-nome--g {
    font-size: 1.1rem;
}

.tcg-rep-calc-dur {
    margin-top: 16px;
}

.tcg-rep-calc-dur label {
    display: block;
    margin-bottom: 6px;
    font-size: .85rem;
    color: var(--rep-muted);
}

.tcg-rep-calc-dur-in {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
}

.tcg-rep-calc-dur-in input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
    accent-color: #e5b556;
}

.tcg-rep-calc-dur-in input[type="number"] {
    flex: 0 0 104px;
    width: 104px;
    text-align: right;
}

.tcg-rep-calc-dur-in span {
    color: var(--rep-muted);
    white-space: nowrap;
}

.tcg-rep-calc-pre {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tcg-rep-calc-pre button,
.tcg-rep-mais,
.tcg-rep-cl {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(244, 210, 161, .45);
    background: linear-gradient(180deg, rgba(20, 16, 22, .75), rgba(20, 16, 22, .55));
    color: var(--rep-gold);
    font-family: var(--rep-serif);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .25s ease;
}

.tcg-rep-calc-pre button:hover,
.tcg-rep-mais:hover,
.tcg-rep-cl:hover,
.tcg-rep-cl.is-on {
    border-color: var(--rep-gold);
    background: linear-gradient(180deg, #fde6ca, #e5b556 55%, #c59768);
    color: #1a1510;
}

.tcg-rep-calc-falta {
    margin: 10px 0 0;
    font-weight: 600;
    color: var(--rep-cream);
}

.tcg-rep-calc-melhor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 18px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(99, 217, 154, .45);
    background: rgba(99, 217, 154, .07);
}

.tcg-rep-calc-melhor span {
    flex: 0 0 100%;
    font-family: var(--rep-serif);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rep-up);
}

.tcg-rep-calc-melhor b {
    color: #fff;
}

.tcg-rep-calc-melhor small {
    color: var(--rep-muted);
}

.tcg-rep-tab-wrap {
    width: 100%;
    overflow-x: auto;
}

.tcg-rep-tab {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.tcg-rep-tab th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--rep-line);
    font-family: var(--rep-serif);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-align: left;
    text-transform: uppercase;
    color: var(--rep-bronze);
    white-space: nowrap;
}

.tcg-rep-tab td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(197, 151, 104, .12);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tcg-rep-tab tr.is-melhor td {
    background: rgba(99, 217, 154, .06);
}

.tcg-rep-tab-mat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
}

.tcg-rep-tab-am--sobe { color: var(--rep-up); }
.tcg-rep-tab-am--cai { color: var(--rep-down); }

.tcg-rep-mais {
    display: block;
    margin: 12px auto 0;
}

/* ---------- ferramentas (busca, classe, ordem) ---------- */
.tcg-rep-sec-head {
    margin-top: 10px;
}

.tcg-rep-sec-head .tcg-rep-lead {
    margin-bottom: 0;
}

.tcg-rep-tools {
    position: sticky;
    top: 64px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
    align-items: end;
    gap: 12px 18px;
    padding: 14px 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tcg-rep-tools .tcg-rep-classes {
    grid-column: 1 / -1;
    grid-row: 2;
}

.tcg-rep-tools .tcg-rep-busca {
    grid-column: 1;
    grid-row: 1;
}

.tcg-rep-tools .tcg-rep-ordem {
    grid-column: 2;
    grid-row: 1;
}

/* tela larga: busca, classes e ordem numa linha (a barra fica fixa no topo ao rolar, entao quanto mais baixa melhor) */
@media (min-width: 1240px) {
    .tcg-rep-tools {
        grid-template-columns: minmax(220px, 1fr) auto minmax(170px, 220px);
    }

    .tcg-rep-tools .tcg-rep-classes {
        grid-column: 2;
        grid-row: 1;
    }

    .tcg-rep-tools .tcg-rep-ordem {
        grid-column: 3;
    }
}

.tcg-rep-rot {
    display: block;
    margin-bottom: 6px;
    font-family: var(--rep-serif);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rep-bronze);
}

.tcg-rep-classes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tcg-rep-classes .tcg-rep-rot {
    flex: 0 0 100%;
}

.tcg-rep-cl {
    min-height: 40px;
}

.tcg-rep-cl--ico {
    width: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tcg-rep-cl--ico img {
    width: 26px;
    height: 26px;
    filter: grayscale(.6) brightness(.85);
    transition: filter .25s ease;
}

.tcg-rep-cl--ico:hover img,
.tcg-rep-cl--ico.is-on img {
    filter: none;
}

.tcg-rep-ordem select {
    cursor: pointer;
}

/* ---------- grupos ---------- */
.tcg-rep-grupos {
    display: grid;
    gap: 12px;
}

.tcg-rep-grupo {
    padding: 0;
}

.tcg-rep-grupo-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.tcg-rep-grupo-head:hover {
    background: rgba(197, 151, 104, .06);
}

.tcg-rep-grupo-icos {
    display: grid;
    grid-template-columns: repeat(2, 26px);
    gap: 3px;
}

.tcg-rep-grupo-nome {
    display: block;
    font-family: var(--rep-serif-head);
    font-size: 1.12rem;
    letter-spacing: .03em;
    color: var(--rep-cream);
}

.tcg-rep-grupo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 2px;
    font-size: .84rem;
    color: var(--rep-muted);
}

.tcg-rep-chip {
    padding: 0 8px;
    border: 1px solid rgba(197, 151, 104, .4);
    font-size: .74rem;
    color: var(--rep-bronze);
}

.tcg-rep-grupo-top {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
}

.tcg-rep-grupo-top b {
    display: block;
    font-size: 1.15rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.tcg-rep-grupo-top small {
    display: block;
    font-size: .74rem;
    color: var(--rep-muted);
}

.tcg-rep-grupo-tnd {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid currentColor;
    color: var(--rep-flat);
    position: relative;
}

.tcg-rep-grupo-tnd::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.tcg-rep-grupo-tnd--sobe { color: var(--rep-up); }
.tcg-rep-grupo-tnd--sobe::after { border-bottom: 7px solid currentColor; margin-top: -1px; }
.tcg-rep-grupo-tnd--cai { color: var(--rep-down); }
.tcg-rep-grupo-tnd--cai::after { border-top: 7px solid currentColor; margin-top: 1px; }
.tcg-rep-grupo-tnd--estavel::after { width: 9px; height: 2px; border: 0; background: currentColor; }

.tcg-rep-chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--rep-bronze);
    border-bottom: 2px solid var(--rep-bronze);
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin: 0 4px 4px;
}

.tcg-rep-grupo.is-open .tcg-rep-chev {
    transform: rotate(225deg);
    margin: 4px 4px 0;
}

.tcg-rep-grupo-corpo {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(197, 151, 104, .18);
}

/* linha de material */
.tcg-rep-mats {
    display: grid;
    gap: 6px;
}

.tcg-rep-mat {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 130px 116px 112px;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(197, 151, 104, .14);
    background: rgba(255, 255, 255, .015);
}

.tcg-rep-mat:hover {
    border-color: rgba(229, 181, 86, .45);
}

.tcg-rep-mat-ico .tcg-rep-ico {
    width: 36px;
    height: 36px;
}

.tcg-rep-mat-info {
    min-width: 0;
}

.tcg-rep-mat-sub,
.tcg-rep-mat-fut {
    margin-top: 2px;
    font-size: .82rem;
    color: var(--rep-muted);
}

.tcg-rep-mat-fut {
    color: rgba(251, 249, 247, .7);
}

.tcg-rep-mat-sub i,
.tcg-rep-mat-fut i {
    font-style: normal;
    color: var(--rep-bronze);
}

.tcg-rep-mat-valor {
    text-align: right;
    line-height: 1.2;
}

.tcg-rep-mat-valor b {
    display: block;
    font-size: 1.3rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.tcg-rep-mat-valor small,
.tcg-rep-mat-valor em {
    display: block;
    font-size: .74rem;
    font-style: normal;
    color: var(--rep-muted);
}

.tcg-rep-mat-valor em {
    color: var(--rep-up);
}

.tcg-rep-delta {
    display: inline-block;
    margin-top: 3px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--rep-flat);
    font-variant-numeric: tabular-nums;
}

.tcg-rep-delta--up { color: var(--rep-up); }
.tcg-rep-delta--down { color: var(--rep-down); }

.tcg-rep-mat-graf {
    color: var(--rep-bronze);
}

.tcg-rep-mat--sobe .tcg-rep-mat-graf { color: var(--rep-up); }
.tcg-rep-mat--cai .tcg-rep-mat-graf { color: var(--rep-down); }

.tcg-rep-spark {
    display: block;
}

.tcg-rep-spark--vazio {
    display: block;
    width: 112px;
    height: 1px;
    background: rgba(197, 151, 104, .25);
}

.tcg-rep-mat-selo {
    text-align: right;
}

.tcg-rep-selo {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid currentColor;
    font-family: var(--rep-serif);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tcg-rep-selo--sobe { color: var(--rep-up); background: rgba(99, 217, 154, .08); }
.tcg-rep-selo--cai { color: var(--rep-down); background: rgba(255, 143, 90, .08); }
.tcg-rep-selo--estavel { color: var(--rep-flat); }
.tcg-rep-selo--fixo { color: var(--rep-bronze); }

/* equipamentos do grupo */
.tcg-rep-eqs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tcg-rep-eq {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid rgba(197, 151, 104, .14);
    background: rgba(255, 255, 255, .015);
    text-align: left;
    cursor: pointer;
}

.tcg-rep-eq:hover {
    border-color: rgba(229, 181, 86, .5);
    background: rgba(197, 151, 104, .08);
}

.tcg-rep-eq-txt {
    min-width: 0;
}

.tcg-rep-eq-txt .tcg-rep-nome {
    display: block;
    overflow: hidden;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tcg-rep-eq-txt small {
    display: block;
    font-size: .76rem;
    color: var(--rep-muted);
}

/* ---------- desconto e rodape ---------- */
.tcg-rep-tab--desc td b {
    color: var(--rep-up);
}

.tcg-rep-fonte {
    margin: 4px 0 0;
    text-align: center;
    font-size: .82rem;
    color: var(--rep-muted);
}

/* ---------- avisos e animacoes ---------- */
.tcg-rep-toast {
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: 24px;
    padding: 12px 20px;
    border: 1px solid rgba(99, 217, 154, .6);
    background: #0e0c11;
    color: #fff;
    font-family: var(--rep-sans);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .7);
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity .35s ease, transform .35s ease;
}

.tcg-rep-toast.is-in {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tcg-rep-pisca {
    animation: tcgRepPisca 1.6s ease-out 2;
}

@keyframes tcgRepPisca {
    0% { color: #fff; text-shadow: none; }
    30% { color: var(--rep-gold); text-shadow: 0 0 14px rgba(229, 181, 86, .9); }
    100% { color: #fff; text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tcg-rep-vivo i,
    .tcg-rep-pisca {
        animation: none;
    }

    .tcg-rep-toast,
    .tcg-rep-chev {
        transition: none;
    }
}

/* ---------- telas menores ---------- */
@media (max-width: 1060px) {
    .tcg-rep-como ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tcg-rep-mat {
        grid-template-columns: 36px minmax(0, 1fr) 120px 96px;
    }

    .tcg-rep-mat-graf {
        display: none;
    }
}

@media (max-width: 760px) {
    .tcg-rep {
        padding: 4px 12px 72px;
        font-size: 14px;
    }

    .tcg-rep-frame {
        padding: 14px;
    }

    .tcg-rep-dests {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-rep-como ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-rep-tools {
        position: static;
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-rep-tools .tcg-rep-busca,
    .tcg-rep-tools .tcg-rep-ordem,
    .tcg-rep-tools .tcg-rep-classes {
        grid-column: 1;
        grid-row: auto;
    }

    .tcg-rep-grupo-head {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        padding: 12px 14px;
    }

    .tcg-rep-grupo-icos,
    .tcg-rep-grupo-tnd {
        display: none;
    }

    .tcg-rep-grupo-top .tcg-rep-ico {
        display: none;
    }

    .tcg-rep-grupo-corpo {
        padding: 0 12px 14px;
    }

    .tcg-rep-mat {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 6px 12px;
        padding: 10px;
    }

    .tcg-rep-mat-ico {
        grid-row: 1 / span 2;
        align-self: start;
    }

    .tcg-rep-mat-info {
        grid-column: 2 / 4;
    }

    .tcg-rep-mat-valor {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 8px;
        text-align: left;
    }

    .tcg-rep-mat-valor b,
    .tcg-rep-mat-valor small,
    .tcg-rep-mat-valor em {
        display: inline;
    }

    .tcg-rep-mat-selo {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
    }

    .tcg-rep-eqs {
        grid-template-columns: minmax(0, 1fr);
    }

    .tcg-rep-calc-dur-in {
        flex-wrap: wrap;
    }

    .tcg-rep-calc-dur-in input[type="range"] {
        flex: 1 1 100%;
    }

    .tcg-rep-tab th:nth-child(5),
    .tcg-rep-tab td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 420px) {
    .tcg-rep-status {
        font-size: .86rem;
    }

    .tcg-rep-sep {
        display: none;
    }

    .tcg-rep-cl--ico {
        width: 36px;
        min-height: 36px;
    }

    .tcg-rep-tab td,
    .tcg-rep-tab th {
        padding: 7px 6px;
    }
}
