* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.85);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.1rem;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.0rem;
    font-style: italic;
    margin-bottom: 24px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 18px;
    font-size: 1.5rem;
    text-align: center;
}

/*
  Results section (bottom box):
  .results-section {
      background: white;

    To make them semi-transparent, change background: white; to something like:
    - background: rgba(255, 255, 255, 0.9); (90% opaque white)
    - background: rgba(255, 255, 255, 0.8); (80% opaque white)
    */

.input-section {
    background: -background: rgba(255, 255, 255, 0.8);;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.calculation-method {
    margin-bottom: 22px;
}

input[type="number"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: #219a52;
}

.calculate-btn:active {
    transform: translateY(1px);
}

.method-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.25);
}

.radio-label {
    font-size: 1.0rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #666;
    z-index: 1;
}

.currency-input input[type="number"] {
    padding-left: 38px;
}

.currency-wrapper .currency-input {
    flex: 1;
}


.pot-info {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    text-align: center;
}

.pot-info p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.pot-info p:last-child {
    margin-bottom: 0;
}

.spinner-control {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.spinner-control:focus-within {
    border-color: #3498db;
    background-color: white;
}

.spinner-btn {
    width: 56px;
    height: 56px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.spinner-btn:hover {
    background-color: #2980b9;
}

.spinner-btn:active {
    background-color: #21618c;
    transform: scale(0.95);
}

.spinner-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.spinner-control input[type="number"] {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 12px;
    min-width: 0;
}

.spinner-control input[type="number"]:focus {
    outline: none;
}

/* Hide default number input spinners/arrows - more aggressive approach */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Additional spinner hiding for better browser support */
input[type="number"]::-ms-clear {
    display: none;
}

input[type="number"]::-ms-reveal {
    display: none;
}

.results-section {
    background:   -background: rgba(255, 255, 255, 0.7);;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.payout-table {
    display: grid;
    gap: 12px;
}

.payout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.payout-row.positive {
    background-color: #d5f4e6;
    border-left: 5px solid #27ae60;
}

.payout-row.negative {
    background-color: #fadbd8;
    border-left: 5px solid #e74c3c;
}

.payout-row.zero {
    background-color: #f8f9fa;
    border-left: 5px solid #6c757d;
}

.skins-count {
    font-weight: 700;
    color: #2c3e50;
}

.payout-amount {
    font-weight: 700;
    font-size: 1.25rem;
}

.positive .payout-amount {
    color: #27ae60;
}

.negative .payout-amount {
    color: #e74c3c;
}

.zero .payout-amount {
    color: #6c757d;
}

.copyright {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 24px;
    padding: 16px;
    font-style: italic;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .input-section, .results-section {
        padding: 20px;
    }
    
    label {
        font-size: 1.1rem;
    }
    
    input[type="number"] {
        font-size: 1.3rem;
        padding: 12px;
    }
    
    .calculate-btn {
        font-size: 1.2rem;
        padding: 18px;
    }
}