/* ===========================
   Mystic Gens - Rules Page
   =========================== */

.rules{
    display:flex;
    flex-direction:column;
    gap:24px;
    width:100%;
    max-width:1150px;
}

/* Layout */

.rules-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 260px;
    gap:20px;
}

.rules-content{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* Hero */

.rules-hero{
    padding:18px 18px 20px 18px;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.rules-hero__main{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:16px;
}

.rules-hero h1{
    margin:0 0 6px 0;
    font-size:26px;
}

.rules-hero__subtitle{
    margin:0;
    color:var(--muted);
    font-size:14px;
    max-width:640px;
}

.rules-hero__meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
    font-size:12px;
    color:var(--muted);
}

.rules-pill{
    padding:4px 10px;
    border-radius:999px;
    border:1px solid var(--ring);
    background:rgba(255,255,255,0.03);
    font-size:11px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.rules-pill--season{
    border-color:rgba(31,191,191,0.7);
    background:linear-gradient(135deg,rgba(31,191,191,0.2),rgba(31,191,191,0));
}

.rules-pill--important{
    border-color:rgba(255,183,3,0.8);
    background:linear-gradient(135deg,rgba(255,183,3,0.18),rgba(255,183,3,0));
}

/* Hero bottom grid */

.rules-hero__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:12px;
}

.rules-hero__item{
    padding:10px 12px;
    border-radius:12px;
    background:rgba(255,255,255,0.03);
    border:1px solid var(--ring);
}

.rules-hero__label{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    color:var(--muted);
    letter-spacing:.08em;
    margin-bottom:4px;
}

.rules-hero__value{
    font-size:14px;
    font-weight:600;
}

/* Banner */

.rules-banner{
    margin-top:4px;
    padding:10px 12px;
    border-radius:12px;
    background:radial-gradient(circle at left,rgba(255,183,3,0.2),transparent);
    border:1px solid rgba(255,183,3,0.8);
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:13px;
    color:var(--text);
}

.rules-banner__icon{
    font-size:18px;
    line-height:1;
    margin-top:2px;
}

/* Sections */

.rules-section{
    padding:18px 18px 20px 18px;
}

.rules-section h2{
    margin-bottom:8px;
    font-size:20px;
}

.rules-section p{
    font-size:14px;
    line-height:1.55;
    color:var(--text);
}

/* Lists */

.rules-list{
    margin:8px 0 0 0;
    padding-left:18px;
    font-size:14px;
    line-height:1.5;
}

.rules-list li + li{
    margin-top:3px;
}

/* Grid + mini cards */

.rules-grid{
    margin-top:14px;
    display:grid;
    gap:12px;
}

.rules-grid--two{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.rules-mini-card{
    padding:14px;
    border-radius:14px;
    background:rgba(255,255,255,0.03);
    border:1px solid var(--ring);
}

.rules-mini-card h3{
    margin:0 0 6px 0;
    font-size:15px;
}

/* Callouts */

.rules-callout{
    margin-top:14px;
    border-radius:14px;
    padding:12px 14px;
    font-size:13px;
    border:1px solid var(--ring);
    background:rgba(255,255,255,0.02);
}

.rules-callout h3{
    margin:0 0 4px 0;
    font-size:14px;
}

.rules-callout--warning{
    border-color:rgba(255,183,3,0.9);
    background:radial-gradient(circle at top left,rgba(255,183,3,0.16),transparent);
}

.rules-callout--info{
    border-color:rgba(31,191,191,0.9);
    background:radial-gradient(circle at top left,rgba(31,191,191,0.18),transparent);
}

.rules-callout--danger{
    border-color:rgba(239,68,68,0.9);
    background:radial-gradient(circle at top left,rgba(239,68,68,0.18),transparent);
}

/* Table */

.rules-table-wrapper{
    margin-top:12px;
    border-radius:10px;
    border:1px solid var(--ring);
    overflow:hidden;
}

.rules-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    background:rgba(0,0,0,0.12);
}

.rules-table th,
.rules-table td{
    padding:8px 10px;
    text-align:left;
}

.rules-table thead{
    background:linear-gradient(90deg,rgba(138,92,246,0.55),rgba(255,183,3,0.45));
}

.rules-table th{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#fdfbff;
}

.rules-table tbody tr:nth-child(even){
    background:rgba(255,255,255,0.02);
}

/* TOC */

.rules-toc{
    position:sticky;
    top:20px;
    align-self:flex-start;
    padding:16px;
}

.rules-toc__title{
    font-size:14px;
    margin:0 0 10px 0;
}

.rules-toc__nav{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:12px;
}

.rules-toc__nav a{
    font-size:13px;
    color:var(--muted);
    text-decoration:none;
    padding:6px 8px;
    border-radius:8px;
    transition:background .15s ease,color .15s ease,transform .1s ease;
}

.rules-toc__nav a:hover{
    background:rgba(255,255,255,0.04);
    color:var(--text);
    transform:translateX(1px);
}

.rules-toc__note{
    font-size:12px;
    color:var(--muted);
    border-top:1px solid var(--ring);
    padding-top:10px;
    margin-top:4px;
}

/* Responsive */

@media (max-width:960px){
    .rules-layout{
        grid-template-columns:1fr;
    }
}

.rules .card{
    transition: none;      /* geen zachte animatie meer nodig hier */
    cursor: default;
}

.rules .card:hover{
    transform: none;
    box-shadow: none;
}
