:root {
    /* --- THEME VARIABLES --- */
    --bg-paper: #f4e4bc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --ink-color: #1a1a1a;
    --leather: #8b4513;
    --accent: #d2691e;
    --danger: #8b0000;
    --success: #2e8b57;
    --gold: #daa520;
    --gray: #4a4a4a;
    --input-bg: rgba(255, 255, 255, 0.5);
    --border-color: #1a1a1a;
    --nav-icon-bg: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-paper: #1a1a1a;
    --bg-card: rgba(0, 0, 0, 0.6);
    --ink-color: #e0e0e0;
    --leather: #b15a1b;
    --accent: #ff8c00;
    --danger: #ff4444;
    --success: #4caf50;
    --gold: #ffd700;
    --gray: #888;
    --input-bg: rgba(0, 0, 0, 0.5);
    --border-color: #8b4513;
    --nav-icon-bg: rgba(255, 255, 255, 0.15);
}

/* --- BASE & RESET --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-paper);
    color: var(--ink-color);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding-bottom: 90px;
    background-image: radial-gradient(var(--leather) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3 { margin: 0; text-transform: uppercase; }

h1 {
    font-size: 1.4rem; letter-spacing: 2px; text-shadow: 2px 2px 0px #000;
}

h2, h3 {
    margin-bottom: 10px; border-bottom: 2px solid var(--border-color);
    display: inline-block; font-weight: 900; letter-spacing: 1px;
}

/* --- ICONS (Masking Technique) --- */
.icon, .icon-lg, .icon-btn, .nav-icon {
    display: inline-block;
    vertical-align: middle;
    background-color: var(--ink-color);
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    object-fit: contain;
}

.icon { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-btn { width: 16px; height: 16px; }
.icon-white { background-color: #fff !important; }

/* --- HEADER --- */
header {
    background: var(--leather);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px double #3e1e05;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky; top: 0; z-index: 100;
}

.theme-btn { background: none; border: none; cursor: pointer; padding: 5px; }
.theme-btn .icon { background-color: #fff; }

/* --- LAYOUT COMPONENTS --- */
.container { padding: 15px; max-width: 800px; margin: 0 auto; }

/* Generic Card */
.card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.card::before { /* Dashed inner border effect */
    content: ''; position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px dashed var(--border-color);
    pointer-events: none; opacity: 0.5;
}

/* --- FORMS & INPUTS --- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-group {
    display: flex; align-items: center;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    border-radius: 4px; overflow: hidden;
    width: 100%; max-width: 110px; height: 36px;
}

.btn-control {
    background: rgba(0, 0, 0, 0.1);
    border: none; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 100%;
}
.btn-control:active { background: rgba(0, 0, 0, 0.2); }
.btn-control .icon-btn { background-color: var(--ink-color); }

.input-control {
    border: none; text-align: center; font-weight: 900;
    width: 100%; background: transparent; color: var(--ink-color);
    font-size: 1.5rem; padding: 0; height: 100%;
    -moz-appearance: textfield;
}

input[type="text"], textarea {
    width: 100%; padding: 8px;
    background: var(--input-bg);
    border: none; border-bottom: 1px solid var(--border-color);
    font-family: inherit; font-size: 1rem; color: var(--ink-color);
    font-weight: bold; border-radius: 4px;
}
input:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }

label {
    font-size: 0.7rem; text-transform: uppercase; font-weight: bold;
    color: var(--gray); display: flex; align-items: center; gap: 6px;
    margin: 5px 0 2px 0;
}

/* --- BUTTONS --- */
button.btn-main, .c-card-btn {
    background: var(--leather);
    color: var(--bg-paper);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-family: inherit; font-weight: bold; text-transform: uppercase;
    cursor: pointer; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    border-radius: 2px; transition: transform 0.1s;
}
button.btn-main:active { transform: translate(2px, 2px); box-shadow: none; }
.btn-full { width: 100%; margin-top: 10px; }

.btn-roll {
    background: var(--leather); color: #fff; border: none;
    padding: 5px 8px; border-radius: 4px; cursor: pointer;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --- NAVIGATION BAR --- */
.nav-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--leather); border-top: 4px double #3e1e05;
    display: flex; justify-content: space-around; padding: 10px 0;
    z-index: 999; box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.nav-btn {
    background: none; border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem; flex: 1; text-align: center;
    cursor: pointer; transition: color 0.2s, transform 0.2s;
}
.nav-btn.active { color: #fff; font-weight: 900; transform: scale(1.1); text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.tab-content { display: none; padding-bottom: 20px; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

/* --- SHOP & INVENTORY --- */
.inv-box {
    border: 2px dashed var(--border-color); background: rgba(0, 0, 0, 0.05);
    min-height: 50px; padding: 5px; margin-bottom: 10px; border-radius: 4px;
}

.inv-item {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 8px; margin-bottom: 5px; display: flex;
    justify-content: space-between; align-items: center;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); cursor: grab; border-radius: 4px;
}
.inv-item:active { cursor: grabbing; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

/* Interactive Shop Card */
.shop-card {
    background: var(--bg-paper);
    padding: 10px;
    border: 2px solid var(--border-color);
    font-size: 0.8rem;
    display: flex; flex-direction: column; justify-content: space-between;
    border-radius: 6px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    cursor: pointer; position: relative; user-select: none;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.shop-cat-scroll { 
    overflow-x: auto; white-space: nowrap; padding-bottom: 10px;
    margin-bottom: 10px; display: flex; gap: 5px; -webkit-overflow-scrolling: touch;
}

.btn-nav-shop {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 70px; height: 60px; margin-right: 5px; padding: 5px; font-size: 0.7rem;
}
.nav-icon-container {
    width: 28px; height: 28px; background: var(--nav-icon-bg);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.nav-icon-container .icon-btn { background-color: var(--ink-color); }

/* --- MODALS --- */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 2000;
    justify-content: center; align-items: center; backdrop-filter: blur(2px);
}

.modal-box {
    background: var(--bg-paper); border: 4px double var(--ink-color);
    padding: 20px; width: 90%; max-width: 400px; text-align: center;
    position: relative; color: var(--ink-color); border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute; top: 5px; right: 10px; background: none; border: none;
    font-size: 1.8rem; color: var(--ink-color); cursor: pointer; line-height: 1;
}

/* XP Modal Specifics */
#xpModal .modal-box { text-align: left; padding: 25px; max-width: 350px; border-color: var(--leather); }
#xpModal h3 { text-align: center; display: block; border-color: var(--leather); padding-bottom: 10px; }
.xp-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed var(--gray); cursor: pointer; transition: background 0.2s;
}
.xp-row:hover { background: rgba(0,0,0,0.05); }
.xp-row:last-of-type { border-bottom: none; margin-bottom: 15px; }

/* Custom Checkbox */
.xp-check {
    appearance: none; -webkit-appearance: none;
    width: 24px; height: 24px; min-width: 24px;
    border: 2px solid var(--ink-color); border-radius: 2px;
    background: var(--input-bg); cursor: pointer;
    display: grid; place-items: center; margin: 0;
}
.xp-check:checked { background: var(--ink-color); }
.xp-check:checked::after { content: '✔'; color: var(--bg-paper); font-size: 1rem; font-weight: bold; line-height: 1; }

.xp-actions { display: flex; gap: 10px; margin-top: 10px; }
.btn-xp-confirm { background-color: var(--leather); color: #fff; border: 1px solid var(--ink-color); }
.btn-xp-cancel { background-color: transparent; color: var(--danger); border: 1px solid var(--danger); }

/* --- 3D DICE & ANIMATIONS --- */
.scene {
    width: 100px; height: 100px; margin: 20px auto; perspective: 600px; cursor: pointer;
}

.cube {
    width: 100%; height: 100%; position: relative;
    transform-style: preserve-3d; transform: translateZ(-50px);
}

.cube__face {
    position: absolute; width: 100px; height: 100px;
    border: 5px solid var(--ink-color); background: var(--bg-paper);
    color: var(--ink-color); font-family: 'Courier New', Courier, monospace;
    font-size: 60px; font-weight: bold; line-height: 100px;
    text-align: center; box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
    backface-visibility: hidden; user-select: none;
    transition: border-color 0.3s;
}

.cube__face--1 { transform: rotateY(  0deg) translateZ(50px); }
.cube__face--2 { transform: rotateY( 90deg) translateZ(50px); }
.cube__face--3 { transform: rotateY(180deg) translateZ(50px); }
.cube__face--4 { transform: rotateY(-90deg) translateZ(50px); }
.cube__face--5 { transform: rotateX( 90deg) translateZ(50px); }
.cube__face--6 { transform: rotateX(-90deg) translateZ(50px); }

.cube.idle { animation: floatDice 3s infinite ease-in-out; }
.cube.winner .cube__face { border-color: var(--accent); color: var(--accent); animation: ripplePulse 1.2s infinite ease-out; }

/* --- SINA CARDS (2D & 3D) --- */
.sina-scene {
    width: 260px; height: 400px; margin: 0 auto;
    perspective: 1000px; cursor: pointer;
}

.sina-card-3d {
    width: 100%; height: 100%; position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sina-card-3d.flipped { transform: rotateY(180deg); }

.sina-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); border: 6px solid var(--leather);
    background-color: #f4e4bc; display: flex; flex-direction: column;
    justify-content: space-between; padding: 15px; overflow: hidden;
}

.sina-face-front { transform: rotateY(0deg); background: var(--bg-paper); }
.sina-face-back {
    transform: rotateY(180deg); background-color: #3e1e05;
    background-image: repeating-linear-gradient(45deg, #3e1e05 0, #3e1e05 10px, #5a2d0c 10px, #5a2d0c 20px);
    display: flex; align-items: center; justify-content: center; border-color: #fff;
}

.card-back-design {
    width: 100px; height: 100px; border: 4px double #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--leather); box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.sina-corner { font-size: 1.2rem; font-weight: bold; color: var(--ink-color); }
.sina-top-left { text-align: left; }
.sina-bottom-right { text-align: right; transform: rotate(180deg); }

.sina-art-container {
    flex-grow: 1; margin: 10px 0; border: 2px solid var(--ink-color);
    background: rgba(0,0,0,0.05); display: flex;
    align-items: center; justify-content: center; position: relative;
}

.sina-title {
    font-weight: 900; text-transform: uppercase; color: var(--danger);
    text-align: center; border-bottom: 2px solid var(--ink-color);
    margin-bottom: 5px; font-size: 1.1rem;
}
.sina-desc { font-size: 0.8rem; text-align: center; font-style: italic; color: var(--ink-color); line-height: 1.1; }

/* --- 3D VARIANT CAROUSEL --- */
#variantModal .modal-box {
    width: 95%; max-width: 800px; background: transparent;
    border: none; box-shadow: none; overflow: visible;
}

.carousel-stage {
    position: relative; height: 420px; width: 100%;
    perspective: 1200px; display: flex; justify-content: center;
    align-items: center; overflow: hidden;
}

.carousel-card {
    position: absolute; width: 220px; height: 340px;
    background-color: var(--bg-paper); border: 4px solid var(--leather);
    border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; align-items: center;
    padding: 15px; text-align: center; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-card-title {
    font-weight: 900; text-transform: uppercase; color: var(--leather);
    border-bottom: 2px solid var(--ink-color); width: 100%;
    margin-bottom: 10px; font-size: 0.9rem; min-height: 2.4em;
    display: flex; align-items: center; justify-content: center;
}

.c-card-icon {
    width: 100px; height: 100px; margin: 10px 0;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
}

.c-card-desc {
    font-size: 0.75rem; color: var(--gray); flex-grow: 1;
    display: flex; align-items: center; justify-content: center; font-style: italic;
}

.c-card-price {
    font-size: 1.4rem; font-weight: 900; color: var(--success);
    margin: 10px 0; text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.c-card-btn {
    width: 100%; padding: 8px; background: var(--ink-color);
    color: var(--bg-paper); border: none; font-weight: bold;
    cursor: pointer; text-transform: uppercase;
}
.c-card-btn:hover { background: var(--accent); }

/* Carousel Navigation */
.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; font-size: 1.5rem; cursor: pointer;
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; backdrop-filter: blur(4px);
    user-select: none; padding-bottom: 4px;
    background: rgba(0, 0, 0, 0.4); color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
}
.carousel-nav:hover {
    background: #fff; color: var(--ink-color); border-color: #fff;
    transform: translateY(-50%) scale(1.1); box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.carousel-nav:active { transform: translateY(-50%) scale(0.95); }

.nav-left { left: 10px; }
.nav-right { right: 10px; }

.nav-icon {
    width: 24px; height: 24px; background-color: currentColor;
    pointer-events: none;
}
.rot-left { transform: rotate(90deg); }
.rot-right { transform: rotate(90deg); }

.scroll-hint {
    position: absolute; bottom: -30px; width: 100%; text-align: center;
    color: #fff; font-size: 0.8rem; opacity: 0.7; animation: pulse 2s infinite;
    text-shadow: 0 2px 4px #000;
}

@media (max-width: 600px) {
    .nav-left { left: 0px; }
    .nav-right { right: 0px; }
    .carousel-nav { width: 40px; height: 40px; }
}

/* --- TRACKERS & ANIMATIONS --- */
.tracker-row { display: flex; justify-content: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }

.circle {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--ink-color); background: var(--input-bg);
    display: grid; place-items: center; cursor: pointer;
    font-size: 0.9rem; font-weight: bold; color: var(--ink-color);
    transition: background 0.2s;
}
.circle.life.filled { background: var(--danger); color: #fff; border-color: #500; }
.circle.pain.filled { background: var(--gray); color: #fff; }
.circle.bonus-life { border: 3px solid var(--gold); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatDice {
    0%, 100% { transform: translateZ(-50px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateZ(-50px) rotateX(10deg) rotateY(10deg); }
}
@keyframes ripplePulse {
    0% { box-shadow: 0 0 0 0px var(--accent), inset 0 0 15px rgba(0,0,0,0.1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0), inset 0 0 15px rgba(0,0,0,0.1); }
    100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), inset 0 0 15px rgba(0,0,0,0.1); }
}
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
/* --- INVENTÁRIO DE SINAS (GRADE ESTILO TAROT) --- */
.sina-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* Largura mínima para caber detalhes */
    gap: 12px;
    margin-top: 15px;
}

.sina-mini-card {
    /* Proporção de carta */
    aspect-ratio: 2 / 3.2; 
    width: 100%;
    
    /* Estilo Visual (Igual ao Modal) */
    background-color: var(--bg-paper);
    border: 4px double var(--leather); /* Borda dupla característica */
    border-radius: 6px;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    position: relative;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    user-select: none;
}

.sina-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

/* Cantos da Carta (Naipe/Ícone pequeno) */
.mini-corner {
    width: 14px;
    height: 14px;
    position: absolute;
    color: var(--ink-color);
}
.mini-tl { top: 6px; left: 6px; }
.mini-br { bottom: 30px; right: 6px; transform: rotate(180deg); } /* Acima do botão */

/* Ícone dentro do Canto */
.mini-corner-icon {
    width: 100%; height: 100%;
    background-color: var(--ink-color);
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}

/* Moldura da Arte Central */
.mini-art-frame {
    flex-grow: 1;
    margin: 16px 8px 8px 8px; /* Espaço para não bater nos cantos */
    border: 1px solid var(--ink-color);
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* A Arte Central */
.mini-art-icon {
    width: 70%;
    height: 70%;
    background-color: var(--accent);
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}

/* Título da Miniatura */
.mini-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--danger);
    text-align: center;
    border-bottom: 1px solid var(--ink-color);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Reticências se o nome for longo */
}

/* Botão de Ação (Integrado na parte inferior) */
.btn-sina-discard {
    background: var(--ink-color);
    color: var(--bg-paper);
    border: none;
    font-size: 0.6rem;
    padding: 3px 0;
    width: 100%;
    margin-top: 2px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 2px;
    z-index: 10; /* Garante que fique acima da carta */
    transition: background 0.2s;
}

.btn-sina-discard:hover {
    background: var(--danger);
}
/* Adicione ao final do seu style.css */

.carousel-stage {
    position: relative;
    width: 100%;
    height: 120px; /* Altura fixa essencial */
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-card {
    position: absolute;
    width: 100px;
    height: 100px;
    background: transparent;
    transition: transform 0.5s, opacity 0.5s, filter 0.5s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Garante que o ícone dentro do carrossel tenha tamanho */
.c-card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--leather);
}

/* --- CARROSSEL 3D (CORREÇÃO DE VISIBILIDADE) --- */
.carousel-stage {
    position: relative;
    width: 100%;
    height: 160px; /* Altura garantida */
    perspective: 1000px;
    margin-top: 10px;
    overflow: hidden; /* Evita barra de rolagem horizontal */
}

.carousel-card {
    position: absolute;
    width: 100px;
    height: 120px;
    left: 50%; /* Centraliza o ponto de origem */
    top: 50%;  /* Centraliza verticalmente */
    /* O transform no JS cuidará do resto, mas começamos centralizados */
    transform: translate(-50%, -50%); 
    background: transparent;
    transition: all 0.4s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255,255,255,0.1); /* Borda sutil para debug visual */
    border-radius: 8px;
}

/* Garante que o ícone tenha tamanho e cor */
.c-card-icon {
    width: 80px;
    height: 80px;
    background-color: #fff; /* Cor do ícone */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Sombra para destacar do fundo */
}
/* Ajuste na descrição da carta para permitir scroll se o texto for longo */
.sina-desc { 
    font-size: 0.85rem; 
    text-align: center; 
    font-style: italic; 
    color: var(--ink-color); 
    line-height: 1.2;
    overflow-y: auto; /* Permite scroll */
    padding: 0 5px;
    margin: 5px 0;
    /* Scrollbar fina */
    scrollbar-width: thin;
}

/* Estilo para a lista de habilidades */
.hab-item {
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.03);
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    position: relative;
}

/* Modal da Loja Transparente */
#variantModal .modal-box {
    animation: fadeIn 0.3s;
}

/* Transição suave da arte da carta ao trocar skin */
#shopCardFront .sina-art-container {
    transition: opacity 0.2s ease;
}