/* ============================================
   RULES PAGE
   ============================================ */
.rules-main { padding: 104px 40px 60px; max-width: var(--container-width); margin: 0 auto; position: relative; z-index: 1; }
.rules-header { text-align: center; margin-bottom: 48px; }
.rules-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.rules-header p { color: var(--text-secondary); font-size: 1.05rem; }
.rules-grid { display: flex; flex-direction: column; gap: 32px; }
.rules-section { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 32px; }
.rules-section h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: var(--gold); }
.rules-section p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.rules-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules-section ul li { color: var(--text-secondary); line-height: 1.6; padding-left: 20px; position: relative; }
.rules-section ul li::before { content: '•'; color: var(--gold); position: absolute; left: 4px; }

/* Phases */
.rule-phase { display: flex; flex-direction: column; gap: 12px; }
.phase-step { display: flex; align-items: flex-start; gap: 16px; padding: 12px 16px; background: rgba(255,255,255,0.02); border-radius: 12px; }
.phase-number { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.phase-step div { color: var(--text-secondary); line-height: 1.6; }

/* Actions */
.actions-list { display: flex; flex-direction: column; gap: 8px; }
.action-item { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: rgba(255,255,255,0.02); border-radius: 10px; color: var(--text-secondary); }
.action-tag { padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; min-width: 110px; text-align: center; flex-shrink: 0; }
.tag-fold { background: rgba(230,57,70,0.15); color: var(--red); }
.tag-check { background: rgba(46,196,182,0.15); color: var(--green); }
.tag-call { background: rgba(67,97,238,0.15); color: #8ab4f8; }
.tag-raise { background: rgba(212,168,67,0.15); color: var(--gold); }
.tag-allin { background: linear-gradient(135deg, rgba(212,168,67,0.2), rgba(230,57,70,0.2)); color: var(--gold-light); }

/* Hand Rankings */
.hand-rankings { display: flex; flex-direction: column; gap: 4px; }
.hand-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: rgba(255,255,255,0.02); border-radius: 8px; transition: all 0.2s; }
.hand-row:hover { background: rgba(255,255,255,0.05); }
.hand-rank { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold); min-width: 30px; }
.hand-demo { font-weight: 700; font-size: 0.95rem; min-width: 120px; letter-spacing: 1px; }
.hand-row div:last-child { font-size: 0.85rem; color: var(--text-secondary); }

/* Tips */
.tips-list li { font-size: 0.95rem !important; }

/* Lexique */
.lexique { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lex-item { padding: 10px 16px; background: rgba(255,255,255,0.02); border-radius: 8px; color: var(--text-secondary); font-size: 0.9rem; }
.lex-item strong { color: var(--text-primary); }

@media (max-width: 768px) {
    .rules-main { padding: 90px 16px 40px; }
    .lexique { grid-template-columns: 1fr; }
    .hand-row { flex-wrap: wrap; gap: 6px; }
    .hand-demo { min-width: auto; }
}