:root {
    --bg: #0f0f0f;
    --bg-dark: #151515;
    --bg-hover: #1d1d1d;
    --border: #2a2a2a;
    --gold: #d4ac0d;
}

.calendar-header {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--gold);
    text-shadow: 0 0 4px #000;
}

.calendar-container {
    width: 100%;
    margin: 20px auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 120px; 
    gap: 4px;
}

.calendar-day {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    padding: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: var(--bg-hover);
}

.calendar-day.other-month {
    background: #090909; /* Nieco ciemniejsze tło */
    opacity: 0.6; /* Wizualne osłabienie kafelka */
    cursor: default;
}

.calendar-day.other-month .day-number {
    color: #555; /* Szary, stonowany kolor zamiast złotego */
}

.day-number {
    font-size: 14px;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 3px;
}

.event-tag {
    padding: 2px 4px;
    font-size: 11px; /* Wybrałem 11px z drugiego bloku */
    border-radius: 3px;
    color: #fff;
    margin-top: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.event-red { background: #c0392b; }
.event-blue { background: #2980b9; }
.event-purple { background: #8e44ad; }
.event-gold { background: #d4ac0d; }

.event-tag .star {
    color: #fff;
    margin-right: 3px;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-dark);
    border: 3px solid var(--border);
    padding: 20px;
    width: 450px;
    max-height: 80vh;
    overflow-y: visible; /* Zmieniono z auto, by dropdowny (podpowiedzi wyszukiwania) nie były ucinane w obrysie modalu */
}

.event-card {
    background: var(--bg-hover);
    border: 2px solid var(--border);
    padding: 10px;
    margin-bottom: 10px;
}

.avatar-frame {
    width:120px;
    height:120px;
    border-radius:50%;
    border:4px solid #97694F;
}

.avatar-premium-gold {
    border-color: gold;
    box-shadow: 0 0 10px gold;
}

.avatar-premium-silver {
    border-color: silver;
    box-shadow: 0 0 10px silver;
}

.avatar-premium-bronze {
    border-color: #cd7f32;
    box-shadow: 0 0 10px #cd7f32;
}

.mount-detail-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.mount-big {
    width: 100% !important;
    height: 100% !important;
}

.mount-frame {
    position: relative;
    padding: 20px;
    border: 2px solid #444;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
}

.mount-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/trawa.png') center/cover no-repeat;
}

.mount-frame img {
    position: relative;
    z-index: 2;
}

.mount-artwork {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.quest-link, .mount-link {
    color: #e8c46c;
    font-weight: bold;
    text-decoration: none;
    transition: 0.15s ease-in-out;
}

.quest-link:hover, .mount-link:hover {
    color: #ffd98a;
    text-shadow: 0 0 4px rgba(255, 220, 150, 0.8);
}

.quest-filter-form, .mount-filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Specyficzne nadpisanie dla mount-filter-form z końca kodu */
.mount-filter-form {
    justify-content: center !important;
    margin: 10px 0 20px 0;
    width: 200px;
    padding: 6px 10px;
    align-items: center;
}

.mount-status-available, .quest-status-available { color: #9fdf7f; }
.mount-status-unavailable, .quest-status-unavailable { color: #bbbbbb; }
.mount-status-deprecated, .quest-status-deprecated { color: #ff6666; }
.mount-status-event, .quest-status-event { color: #66aaff; }
.mount-status-rare, .quest-status-rare { color: #c28bff; }
.mount-status-store, .quest-status-store { color: #ffd98a; }
.mount-status-tournament, .quest-status-tournament { color: #ffb347; }
.mount-status-other, .quest-status-other { color: #ffffff; }

.achievement-link {
    display: inline-block;
    padding: 3px 8px;
    background: #443e34;
    border: 2px solid #b08c5a;
    border-radius: 4px;
    color: #ffd27f;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    transition: 0.2s;
}

.achievement-link:hover {
    background: #5a4f42;
    border-color: #e3c07b;
    color: #fff2b0;
}

.small-input, .mount-search-small {
    padding: 3px 6px;
    border: 2px solid #97694F;
    background: #f7e9c9;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.small-input { width: 200px; }
.mount-search-small { width: 50px; padding: 6px 10px; font-size: 14px; justify-content: center; }

.outfit-select, .skill-select, .event-select, .outfit-select1 {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.item-icon {
    float: left;
    margin-right: 6px;
    width: 1px;
    height: 1px;
}

.event-select img, .outfit-select img {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.skill-select img {
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.outfit-select input, .skill-select input, .event-select input {
    position: absolute;
    left: -9999px;
}

.outfit-select input:checked + img,
.skill-select input:checked + img,
.event-select input:checked + img {
    border-color: #f8df00c2;
    transform: scale(1.2);
}

.event-select span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
}

.inputs-column { 
    font-weight: bold;
    display: flex; 
    flex-direction: column; 
    width: 150px; 
    margin: 0 auto; 
    gap: 5px; 
} 

.inputs-column input { 
    font-weight: bold;
    background: #f7e9c9;
    padding: 1px 10px; 
    border-radius: 6px; 
    border: 2px solid #97694F; 
    text-align: center;
}

.loyalty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.loyalty-select, .like-select {
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Delikatniejsza ramka */
    background: linear-gradient(145deg, #cc9900, #b38600); /* Subtelny gradient */
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #2a1f0d; /* Ciemniejszy, bardziej czytelny kolor tekstu */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Delikatny cień pod spodem */
    outline: none;
    appearance: none; /* Usuwa systemowy wygląd selecta na iOS/Chrome */
}

.loyalty-select:hover, .like-select:hover {
    background: #e6ac00; /* Jaśniejszy złoty przy najechaniu */
    transform: translateY(-1px); /* Lekkie uniesienie */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.loyalty-select:active, .like-select:active {
    transform: translateY(0); /* Efekt kliknięcia */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.result-wrapper {
    margin:auto;
    max-width: 50vw;
    position: relative; 
}

.skill-corner-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 48px;
    animation: popIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes popIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.result-table {
    display: table;
    width: 95%;
    margin: 20px auto;
    box-sizing: border-box;
    
    /* KLUCZOWE ZMIANY */
    border-collapse: separate; /* Zmienione z collapse */
    border-spacing: 0; 
    border-radius: 10px;      /* Tutaj ustalasz stopień zaokrąglenia */
    overflow: hidden;         /* Zapobiega wystawaniu treści/tła poza rogi */
    
    background: rgba(15, 15, 18, 0.6) !important;
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: clamp(8px, 1vw + 2px, 34px); 
    color: #f1f5f9 !important;
}

.result-table thead th {
    /* STICKY - stabilne nagłówki */
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* WYGLĄD */
    /* background-color: #1a1e24 !important;  */
    color: #39ff14 !important;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    padding: 10px 2px;
    font-weight: bold;
    text-transform: uppercase;
    
    /* NAPRAWA RAMKI przy sticky: */
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    border-right: 1px solid rgba(168, 85, 247, 0.3);
    background-clip: padding-box;
    /* font-size: clamp(12px, 1.2vw, 18px); */
    /* box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); */
    /* background: linear-gradient(180deg, #3d311f 0%, #1a150e 100%) !important; */
    background: rgba(15, 15, 18, 0.9);
    
}

.result-table thead th:last-child,
.result-table td:last-child {
    border-right: none;
}

.result-table tr:hover {
    background: rgba(168, 85, 247, 0.1) !important;
    transition: 0.2s;
}

.weapon-icon {
    width: clamp(32px, 4vw, 128px); 
    cursor: help;
    margin: 0 auto
}

.stamina-form {
    max-width: 40vw;
    margin: 20px auto;
    padding: 20px;
    background: #f3e4c0;
    border: 2px solid #c9a86a;
    border-radius: 10px;
    text-align: center;
}

.stamina-form h3 {
    margin-bottom: 15px;
    color: #4a3b2a;
}

.stamina-form .input-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.stamina-form .input-row label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 14px;
    color: #4a3b2a;
}

.stamina-form .input-row input {
    margin-top: 5px;
    padding: 5px 10px;
    border: 2px solid #d4b47a;
    border-radius: 6px;
    width: 80px;
    text-align: center;
    font-weight: bold;
}

.result-box { 
    display: none;
    width: 70%; 
    margin: 10px auto; 
    padding: 10px 15px; 
    border: 2px solid #5C4033; 
    color: #330000; 
    font-size: 16px; 
    text-align: center; 
    border-radius: 4px;
}

@media (max-width: 600px) {
    .result-table {
        width: 95%;
        font-size: 13px;
    }
    .weapon-icon { width: 32px; }
    .currency-icon { width: 14px; }
    .skill-corner-icon {
        width: 36px;
        top: -5px;
        right: -5px;
    }
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

.result-table tr.total-row {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.10) 55%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.12) 55%, rgba(255,255,255,0.06) 100%),
    linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 42%, rgba(255,255,255,0.98) 49%, rgba(255,255,255,0.70) 53%, rgba(255,255,255,0.22) 60%, rgba(255,255,255,0) 68%, rgba(255,255,255,0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 240% 100%;
  background-position: 0 0, 0 0, 220% 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -1px 0 rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.14);
  animation: totalRowShine 5s ease-in-out infinite;
}

.result-table tr.total-row td {
  background: transparent !important;
}

@keyframes totalRowShine {
  0%   { background-position: 0 0, 0 0, 220% 0; }
  100% { background-position: 0 0, 0 0, -220% 0; }
}

.gallery-grid {
    width: 90%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.gallery-card {
    background: rgba(15, 15, 18, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px; /* Większe zaokrąglenie wygląda nowocześniej */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-5px); /* Subtelne uniesienie */
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.gallery-card-header {
    background: rgba(255, 255, 255, 0.03); /* Bardzo delikatne odcięcie od reszty karty */
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* Efekt przybliżenia obrazka po najechaniu na kartę */
.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card-desc {
    padding: 15px;
    color: #bdc3c7; /* Bardziej stonowany, czytelny szary/srebrny */
    font-size: 14px;
    line-height: 1.6; /* Większy odstęp między liniami dla czytelności */
}

.gallery-card-actions {
    padding: 12px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2); /* Lekkie przyciemnienie sekcji akcji */
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.like-btn, .dislike-btn {
    padding: 5px 10px;
    border: 2px solid #97694F;
    background: #757375;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 5px;
    transition: 0.2s;
}

.like-btn:hover { background: #ccffcc; border-color: #55aa55; }
.dislike-btn:hover { background: #ffcccc; border-color: #aa5555; }

.progress-container {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6ccf6c, #3fa63f);
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px solid #3f2a14;
    border-radius: 6px;
    padding: 10px;
    transform: scale(0.7);
    transform-origin: center;
}

.summary-icon { width: 40px; height: 40px; }
.summary-title {
    font-size: 29px;
    font-weight: bold;
    color: #a47707;
    text-shadow: 2px 2px 2px #000;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.skill-column, .loyalty-column {
    flex: 1 1 280px;
    max-width: 320px;
}

.tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    display: inline-block; 
    font-size: inherit;
    min-width: 50px; 
    text-align: center;
}
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 15, 18, 0.95);
    color: #53a844 !important;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.4);
    font-weight: 500;
    border: 1px solid rgba(57, 255, 20, 0.6) !important;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

.tag-new { background: #28a745; }
.tag-fix { background: #dc3545; }
.tag-update { background: #ffc107; color:#000; }
.tag-info { background: #17a2b8; }
.tag-default { background: #6c757d; }

.rank-admin { color: #ff0000; font-weight: bold; }
.rank-programista { color: #9b59b6; font-weight: bold; }
.rank-redaktor { color: #1e90ff; font-weight: bold; }
.rank-przewodnik { color: #e67e22; font-weight: bold; }
.rank-support { color: #17a2b8; font-weight: bold; }
.rank-tester { color: #fd7e14; font-weight: bold; }
.rank-analityk { color: #20c997; font-weight: bold; }
.rank-user { color: #777; font-weight: bold; }

.rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
    border: 2px solid #2b1f14;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.4), 0 2px 3px rgba(0,0,0,0.4);
    text-shadow: 1px 1px 0 #000;
    font-family: Verdana, sans-serif;
}

.rank-badge.rank-admin { background: linear-gradient(180deg, #b30000 0%, #7a0000 100%); }
.rank-badge.rank-programista { background: linear-gradient(180deg, #9b59b6 0%, #6d3d82 100%); }
.rank-badge.rank-redaktor { background: linear-gradient(180deg, #1e90ff 0%, #0066cc 100%); }
.rank-badge.rank-przewodnik { background: linear-gradient(180deg, #d35400 0%, #a04000 100%); }
.rank-badge.rank-support { background: linear-gradient(180deg, #17a2b8 0%, #117a8b 100%); }
.rank-badge.rank-tester { background: linear-gradient(180deg, #fd7e14 0%, #d36400 100%); }
.rank-badge.rank-analityk { background: linear-gradient(180deg, #20c997 0%, #17916c 100%); }
.rank-badge.rank-user { background: linear-gradient(180deg, #777 0%, #555 100%); }

.news-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid #3a2f1f;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.news-header {
    background: rgba(0,0,0,0.45);
    padding: 10px 12px;
    border-bottom: 1px solid #2a2218;
    font-weight: bold;
    font-size: 15px;
    color: #ffd27f;
    margin-bottom: 12px;
}

.news-body {
    font-size: 14px;
    line-height: 1.55;
    color: #ddd;
}

.news-content { overflow: hidden; }
.news-body img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.news-body iframe { width: 100%; height: 350px; border: none; margin: 10px 0; }

.ticket-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin-left: 10px;
}

.ticket-open { background: #28a745; }
.ticket-closed { background: #dc3545; }
.ticket-player { background: #ffc107; color: #000; }
.ticket-staff { background: #007bff; }

.calc-label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #e3c07b;
    margin-bottom: 4px;
    text-shadow: 1px 1px 0px #000;
    letter-spacing: 0.5px;
    text-align: center; 
}

.calc-label::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 2px;
    background: linear-gradient(to right, #e3c07b, transparent);
    opacity: 0.4;
    margin: 0 auto; 
    width: 30%;
}

.helpdesk-textarea {
    width: 100%;
    min-height: 140px;
    background: #f7e9c9;
    border: 2px solid #97694F;
    border-radius: 6px;
    padding: 8px 10px;
    font-weight: bold;
    color: #4a3b2a; /* Zmieniłem z eddbc5 bo był zbyt jasny na beżowym tle */
    resize: vertical;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.25);
}

.helpdesk-textarea:focus {
    outline: none;
    border-color: #c9a86a;
    box-shadow: 0 0 6px #d4b47a, inset 0 0 4px rgba(0,0,0,0.35);
}

h1 {
    display: block;
    width: fit-content;
    padding: 6px 20px;
    background: linear-gradient(145deg, rgba(15, 15, 18, 0.95), rgba(10, 10, 12, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    font-weight: 800;
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    margin: 20px auto; 
    letter-spacing: 2px;
    font-size: 26px;
    text-align: center;
}

.loyalty-select {
    /* AUTOMATYCZNA CZCIONKA - taka sama jak w tabeli */
    font-size: clamp(12px, 1vw + 2px, 16px) !important;
    
    /* WYGLĄD I DOPASOWANIE */
    padding: 8px 12px; /* Zwiększyłem padding, żeby tekst nie był "ściśnięty" */
    height: auto;      /* Pozwala selectowi urosnąć wraz z czcionką */
    border: 2px solid #330000;
    background: #cc9900;
    border-radius: 6px;
    cursor: pointer;
    color: #4a3b2a;
    font-weight: bold;
    transition: 0.2s;
    
    /* Stabilizacja szerokości */
    box-sizing: border-box; 
}

.loyalty-select:hover {
    background: #f7e9c9;
    border-color: #d4b47a;
}

/* Tekst nad inputami (Min/Maks pkt) */
.filter-label {
    font-size: clamp(11px, 0.8vw + 2px, 14px) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pola tekstowe/numeryczne */
.small-input {
    font-size: clamp(12px, 1vw + 2px, 16px) !important;
    padding: 6px 10px;
    border: 2px solid #97694F;
    background: #f7e9c9;
    border-radius: 6px;
    font-weight: bold;
    color: #330000;
    max-width: 90px !important; /* To powstrzyma pole przed byciem za szerokim */
    text-align: center;
    -moz-appearance: textfield; /*Usuwa strzałki w Firefox*/
}

.small-input::-webkit-outer-spin-button,
.small-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-label {
    /* Upewniamy się, że label nie próbuje być szerszy niż input */
    max-width: 100px;
    display: inline-block;
}


.npc-icon {
    /* Wielkość dopasowana do responsywności tabeli */
    width: auto; 
    /* Używamy clamp, aby bazowo powiększyć gifa, ale zachować proporcje (width: auto) */
    height: clamp(64px, 5vw, 128px);
    
    /* Kluczowe dla grafiki z Tibii - zapobiega rozmyciu przy powiększaniu */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    
    display: block;
    /* Zwiększony margines, aby dać ikonom więcej przestrzeni (oddechu) */
    margin: 15px auto;
    
    /* Opcjonalnie: delikatny cień, żeby postać "odstawała" od tła */
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}

.mount-icon {
    /* Wielkość dopasowana do responsywności tabeli */
    width: 64px;
    height: auto;
    
    /* Kluczowe dla grafiki z Tibii - zapobiega rozmyciu przy powiększaniu */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    
    display: block;
    margin: 0 auto;
    
    /* Opcjonalnie: delikatny cień, żeby postać "odstawała" od tła */
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}
.item-icon {
    /* Wielkość dopasowana do responsywności tabeli */
    width: clamp(32px, 2vw, 128px); 
    height: auto;
    
    /* Kluczowe dla grafiki z Tibii - zapobiega rozmyciu przy powiększaniu */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    
    display: block;
    margin: 0 auto;
    
    /* Opcjonalnie: delikatny cień, żeby postać "odstawała" od tła */
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}
.item-calc-icon {
    display: flex;          /* Ustawia elementy w linii */
    align-items: center;    /* Centruje obrazek i tekst pionowo względem siebie */
    justify-content: center; /* Centruje całość w poziomie wewnątrz komórki */
    gap: 8px;               /* Odstęp między gifem a liczbą */
    margin-bottom: 4px;     /* Odstęp między wierszem GP a TC */
}

.item-calc-icon img {
    width: clamp(32px, 2vw, 128px); 
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
    display: block;
}
.stat-icon { height: 1.2em; width: auto; display: block; image-rendering: pixelated; }
.stat-container { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.skill-btn-forge {
    display: block;      /* Przycisk musi być blokiem, żeby margin: auto zadziałał */
    width: 20%;
    margin: 10px auto 0; /* 10px góra, auto boki, 0 dół */
    padding: 12px;


    
    /* Kolory i Obramowanie */
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 8px;
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    
    /* Typografia */
    font-weight: bold;
    text-transform: uppercase; /* Opcjonalnie: nadaje charakteru przyciskom akcji */
    letter-spacing: 1px;
    
    /* Interakcja */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-btn-forge:hover { 
    background: #39ff14; 
    color: #000; 
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    transform: translateY(-2px); /* Delikatne uniesienie */
}

.skill-btn-forge:active {
    transform: translateY(0); /* Efekt wciśnięcia */
}

/* Opcjonalny efekt "błysku" przy najechaniu */
.skill-btn-forge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.skill-btn-forge:hover::before {
    left: 100%;
}