/* StoneAge2 rules.css - Yucata Rules Styles */

.stoneage-rules-theme {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 32px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #2b1810;
    line-height: 1.8;
    background: #faf6ee;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(60, 30, 10, 0.08);
}

.stoneage-rules-theme p {
    margin: 12px 0 16px 0;
    line-height: 1.8;
}

.stoneage-rules-theme ul,
.stoneage-rules-theme ol {
    margin: 12px 0 18px 0;
    padding-left: 26px;
}

.stoneage-rules-theme li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.stoneage-rules-theme li > ul,
.stoneage-rules-theme li > ol {
    margin-top: 8px;
    margin-bottom: 8px;
}

.stoneage-rules-theme h1,
.stoneage-rules-theme h2,
.stoneage-rules-theme h3,
.stoneage-rules-theme .gameTitle {
    font-family: 'Georgia', serif;
    color: #5c3818;
    font-weight: bold;
    line-height: 1.4;
}

.stoneage-rules-theme .gameTitle {
    font-size: 2.4em;
    text-align: center;
    margin: 12px 0 24px 0;
    color: #633611;
    text-shadow: 1px 1px 2px rgba(180, 120, 50, 0.2);
    border-bottom: 2px solid #d4b886;
    padding-bottom: 14px;
}

.stoneage-rules-theme .summaryInfo {
    background: #eadecb;
    border-left: 4px solid #8c531b;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.96em;
    line-height: 1.7;
    margin-bottom: 16px;
}

.stoneage-rules-theme .rules-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    background: #efe5d3;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.92em;
    margin-bottom: 22px;
}

.stoneage-rules-theme .rules-view-toggle a {
    color: #8c531b;
    text-decoration: none;
    font-weight: 600;
}

.stoneage-rules-theme .rules-view-toggle a:hover {
    text-decoration: underline;
    color: #b45309;
}

.stoneage-rules-theme .ruleschanged {
    background: linear-gradient(135deg, #fff9e6 0%, #fdf2cc 100%);
    border: 1.5px solid #d4a017;
    border-radius: 8px;
    padding: 16px 22px;
    margin: 22px 0;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.15);
}

.stoneage-rules-theme .ruleschanged h3 {
    color: #855304;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15em;
}

.stoneage-rules-theme .chapter {
    background: #ffffff;
    border: 1px solid #e2d3be;
    border-radius: 10px;
    padding: 22px 28px;
    margin: 26px 0;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stoneage-rules-theme .chapter .title {
    font-size: 1.4em;
    color: #633611;
    font-weight: bold;
    border-bottom: 1.5px solid #deb887;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.stoneage-rules-theme .chapter h2 {
    font-size: 1.25em;
    color: #783f04;
    margin-top: 22px;
    margin-bottom: 10px;
}

.stoneage-rules-theme .chapter h3 {
    font-size: 1.1em;
    color: #8c531b;
    margin-top: 18px;
    margin-bottom: 8px;
}

.stoneage-rules-theme .summary {
    background: #f5eedf;
    border-left: 3.5px solid #a66a2c;
    padding: 10px 16px;
    font-style: italic;
    font-size: 0.96em;
    line-height: 1.7;
    margin: 10px 0 16px 0;
    border-radius: 0 6px 6px 0;
}

.stoneage-rules-theme .itemisation {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px 14px;
    background: #fbf8f2;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px dashed #d5c2a5;
    line-height: 1.7;
}

.stoneage-rules-theme .itemcnt {
    font-weight: bold;
    color: #8c531b;
    text-align: right;
}

.stoneage-rules-theme table.stoneage-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.96em;
    background: #fffdf9;
    border: 1px solid #cfb897;
    border-radius: 8px;
    overflow: hidden;
}

.stoneage-rules-theme table.stoneage-table th {
    background: linear-gradient(180deg, #d8bc93 0%, #caa776 100%);
    color: #3b200c;
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #bf9b69;
}

.stoneage-rules-theme table.stoneage-table td {
    padding: 12px 16px;
    border: 1px solid #e2d3be;
    vertical-align: middle;
    line-height: 1.7;
}

.stoneage-rules-theme table.stoneage-table tr:nth-child(even) {
    background: #fbf7ee;
}

.stoneage-rules-theme img {
    vertical-align: middle;
}

.stoneage-rules-theme .cover-box {
    text-align: center;
    margin: 15px 0;
}

.stoneage-rules-theme .cover-img {
    max-width: 100%;
    max-height: 380px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(40, 20, 5, 0.25);
    border: 2px solid #8c531b;
}

.stoneage-rules-theme .rule-badge {
    display: inline-block;
    background: #8c531b;
    color: #ffffff;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 6px;
}

.stoneage-rules-theme .icon-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stoneage-rules-theme .svg-die-icon {
    display: inline-block;
    vertical-align: middle;
    width: 22px;
    height: 22px;
    margin: 0 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}