
.outfit-select,
.skill-select,
.event-select {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.event-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 img {
    width: 64px;
    height: 64px;
    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: #663300;
    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 {
    padding: 1px 8px;
    border: 2px solid #330000;
    background: #cc9900;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #4a3b2a;
    font-weight: bold;
    transition: 0.2s;
}

.loyalty-select:hover {
    background: #f7e9c9;
    border-color: #d4b47a;
}

.result-wrapper {
    width: 100%;
}

.skill-corner-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 48px;
    animation: popIn 0.5s ease;
}

/* -------------------------
   Animacje
------------------------- */

@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; }
}

/* -------------------------
   Tabela
------------------------- */

.result-table {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #f3e4c0;
    border: 2px solid #330000;
    font-size: 15px;
}

.result-table th {
    background: #d4b47a;
    padding: 8px;
    border: 1px solid #b08c5a;
}

.result-table td {
    padding: 8px;
    border: 1px solid #c9a86a;
    text-align: center;
}

.result-table tr:nth-child(even) {
    background: #f7ecd2;
}

.result-table tr:nth-child(odd) {
    background: #f3e4c0;
}

.result-table tr:hover {
    background: #ffe9b8;
    transition: 0.2s;
}

.weapon-icon {
    width: 40px;
    cursor: help;
}

/* -------------------------
   Stamina
------------------------- */

.stamina-form {
    max-width: 500px;
    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;
}

.input-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.input-row label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 14px;
    color: #4a3b2a;
}

.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
------------------------- */

.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;
}

/* -------------------------
   Mobile
------------------------- */

@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;
    }
}


/* TOTAL ROW – szkło i smuga WYŁĄCZNIE w obrębie wiersza */

.result-table tr.total-row {
  /* 3 warstwy:
     1) GLASS TINT (delikatne przyciemnienie – daje kontrast)
     2) GLASS HIGHLIGHT (błysk szkła)
     3) SHINE (animowana smuga) */
  background-image:
    /* 1) tint – daje widoczność szkła */
    linear-gradient(
      180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.10) 55%,
      rgba(0,0,0,0.22) 100%
    ),
    /* 2) highlight – „szkło” */
    linear-gradient(
      180deg,
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.12) 55%,
      rgba(255,255,255,0.06) 100%
    ),
    /* 3) smuga – mocniejsza i szersza */
    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, no-repeat, no-repeat;

  /* tint + highlight pełne, smuga szersza */
  background-size: 100% 100%, 100% 100%, 240% 100%;
  background-position: 0 0, 0 0, 220% 0;

  /* krawędzie szkła (dużo daje!) */
  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; }
}

.result-table tr.total-row:hover {
  background-color: inherit;
}

.gallery-grid {
    width: 90%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    background: #f3e4c0;
    border: 2px solid #330000;
    border-radius: 6px;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.gallery-card-header {
    background: #d4b47a;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #b08c5a;
    color: #4a3b2a;
}

.gallery-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #c9a86a;
}

.gallery-card-desc {
    padding: 10px;
    color: #4a3b2a;
    font-size: 14px;
}

.gallery-card-actions {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #c9a86a;
}

.like-btn, .dislike-btn {
    padding: 5px 10px;
    border: 2px solid #97694F;
    background: #f7e9c9;
    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;
}
