.pity-fullpage-container {
    background: 0;
    color: #fff;
    padding: 0px;
    border-radius: 12px;
    font-family: 'Barlow', sans-serif;
    margin: 0 auto;
    box-shadow: 0;
    position: relative;
}

.pity-header {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffcc00;
}

.pity-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pity-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.pity-tab {
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    position: relative;
    max-width: 200px;
}

.pity-tab img {
    max-width: 100px;
    display: block;
    margin: 0 auto 5px;
}

.pity-tab.active {
    border-color: #ffaa00;
    background: #222;
}

.pity-controls,
.pity-row,
.pity-result {
    margin: 20px 0;
}

.pity-summary {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.pity-slider,
.pity-number {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background: #222;
    border: 2px solid #ffaa00;
    color: #fff;
    border-radius: 8px;
}

.pity-bar-wrapper {
    position: relative;
    height: 24px;
    background: #333;
    border-radius: 12px;
    overflow: hidden;
}

.pity-fill {
    background: #ffaa00;
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.pity-label-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    line-height: 24px;
    z-index: 2;
    text-shadow: 0 0 5px #000, 0 0 10px #ffaa00;
}

.pity-row .pity-label {
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 16px;
}

.pity-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pity-button {
    width: 100px;
    padding: 10px;
    background: #333;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.pity-info-button {
    margin-top: 10px;
    background: #444;
    color: #fff;
    border: 1px solid #ffaa00;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
}

.pity-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.pity-modal-content {
    background: #222;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #ffaa00;
    position: relative;
}

.pity-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
}

.pity-modal-content ol {
    padding-left: 20px;
    margin: 10px 0;
    list-style-type: decimal;
    color: #eee;
    font-size: 15px;
    line-height: 1.6;
}

.pity-modal-content li {
    margin-bottom: 12px;
}

.pity-modal-content h2 {
    margin-top: 0;
    font-size: 22px;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.pity-result {
    text-align: center;
    font-weight: 700;
    color: #ffcc00;
}

.pity-save-status {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #cfcfcf;
    min-height: 18px;
}

@media (max-width: 767px) {
    .pity-fullpage-container {
        padding: 20px 15px;
    }

    .pity-tabs {
        flex-direction: column;
    }

    .pity-tab {
        max-width: 100%;
    }
}
/* =========================
   Prospector Pity Tracker
   Mobile layout patch
   ========================= */

@media (max-width: 768px) {

  .pity-fullpage-container {
    padding: 18px 14px 100px;
    max-width: 100%;
  }

  .pity-header {
    font-size: 26px;
    margin-bottom: 14px;
    text-align: center;
  }

  .pity-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    justify-content: unset;
    align-items: stretch;
    margin: 16px 0 20px;
  }

  .pity-tab {
    max-width: 100%;
    min-width: 0;
    padding: 10px 8px 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .pity-tab img {
    width: 100%;
    max-width: 72px;
    height: auto;
    margin: 0 auto 8px;
  }

  .pity-tab br {
    display: none;
  }

  .pity-tab {
    font-size: 15px;
    line-height: 1.2;
  }

  .pity-info-button {
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.2;
    width: 100%;
  }

  .pity-row,
  .pity-controls,
  .pity-result {
    margin: 16px 0;
  }

  .pity-number,
  .pity-slider {
    font-size: 16px;
  }

  .pity-buttons {
    gap: 8px;
    flex-wrap: wrap;
  }

  .pity-button {
    width: 110px;
    font-size: 15px;
    padding: 10px 12px;
  }

  .pity-label-overlay {
    font-size: 13px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .pity-summary {
    font-size: 13px;
    line-height: 1.4;
    padding: 0 6px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .pity-fullpage-container {
    padding: 16px 12px 100px;
  }

  .pity-tabs {
    gap: 8px;
  }

  .pity-tab {
    padding: 8px 6px 10px;
  }

  .pity-tab img {
    max-width: 60px;
  }

  .pity-tab {
    font-size: 14px;
  }

  .pity-info-button {
    font-size: 10px;
    padding: 6px 6px;
  }

  .pity-button {
    width: calc(50% - 4px);
    min-width: 0;
  }
}