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

body {
    font-family: Arial, Helvetica, sans-serif;
    padding: 20px;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 24px;
}

/* Main card pack table */
.pack-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
}

.pack-table thead th {
    background-color: #fce5cd;
    border: 2px solid #000;
    padding: 10px 14px;
    text-align: left;
    font-weight: bold;
    font-size: 1em;
}

.pack-table thead th.col-pack {
    width: 15%;
    text-align: center;
    white-space: nowrap;
}

.pack-table > tbody > tr {
    border: 2px solid #000;
}

.pack-table > tbody > tr > td {
    border: 2px solid #000;
    padding: 10px;
    vertical-align: middle;
}

/* Pack name + image cell */
.pack-cell {
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}

.pack-cell strong {
    display: block;
    margin-bottom: 8px;
}

.pack-cell img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Description cell */
.desc-cell p {
    margin-bottom: 10px;
}

.prob-heading {
    font-weight: normal;
}

/* Probability list (replaces inner table) */
.prob-list {
    margin-left: 40px;
    margin-top: 4px;
}

.prob-row {
    font-style: italic;
    font-size: 0.95em;
    padding: 3px 0;
}

.prob-label {
    margin-right: 4px;
}

/* ================================
   Mobile responsive styles
   ================================ */
@media screen and (max-width: 768px) {
    body {
        padding: 12px;
    }

    h1 {
        font-size: 1.5em;
        margin-bottom: 16px;
    }

    /* Convert table to stacked card layout */
    .pack-table,
    .pack-table thead,
    .pack-table tbody,
    .pack-table tr,
    .pack-table th,
    .pack-table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .pack-table thead {
        display: none;
    }

    .pack-table {
        border: none;
    }

    .pack-table > tbody > tr {
        border: 2px solid #000;
        margin-bottom: 16px;
    }

    .pack-table > tbody > tr > td {
        border: none;
        border-bottom: 1px solid #ddd;
    }

    .pack-table > tbody > tr > td:last-child {
        border-bottom: none;
    }

    .pack-cell {
        background-color: #fce5cd;
        padding: 14px 10px;
    }

    .pack-cell strong {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .pack-cell img {
        width: 80px;
    }

    .desc-cell {
        padding: 14px;
    }

    .prob-list {
        margin-left: 20px;
    }
}

@media screen and (max-width: 400px) {
    body {
        padding: 8px;
    }

    h1 {
        font-size: 1.3em;
    }

    .prob-list {
        margin-left: 10px;
    }

    .prob-row {
        font-size: 0.9em;
    }
}