.header {
text-align: center; margin-bottom: 36px; padding-bottom: 32px;
border-bottom: 1px solid rgba(201,168,76,0.1); position: relative;
}
.header .suit-watermark { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 140px; opacity: 0.02; color: var(--antique-gold); pointer-events: none; user-select: none; }
.header h1 { font-family: 'Cinzel', serif; font-size: 34px; font-weight: 900; color: var(--antique-gold); letter-spacing: 4px; margin-bottom: 6px; text-shadow: 0 2px 12px rgba(201,168,76,0.15); }
.header p { color: var(--ivory-dim); font-size: 14px; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.header .suits-divider { margin-top: 16px; font-size: 14px; letter-spacing: 12px; }
.header .red-suit { color: var(--burgundy-bright); }
.header .dark-suit { color: var(--antique-gold-dim); opacity: 0.5; }

/* ═══════════ CATEGORY ═══════════ */
.category-section { margin-bottom: 48px; }
.category-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 20px; padding: 14px 20px;
background: rgba(8,46,30,0.5); border: 1px solid rgba(201,168,76,0.12); border-radius: 12px;
}
.category-header-left { display: flex; align-items: center; gap: 14px; }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cat-title { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 900; color: var(--ivory); letter-spacing: 1.5px; }
.cat-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ivory-faint); }

/* ═══════════ VARIANT CARDS ═══════════ */
.variants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.variant-card {
background: rgba(8,46,30,0.45); border: 1px solid rgba(201,168,76,0.1);
border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column;
transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; position: relative;
}
.variant-card:hover { border-color: rgba(201,168,76,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 16px rgba(201,168,76,0.08); transform: translateY(-4px); }

.vc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vc-badge { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.badge-tp { background: rgba(201,168,76,0.12); color: var(--antique-gold); border: 1px solid rgba(201,168,76,0.2); }
.badge-bt { background: rgba(58,111,160,0.15); color: #7BA8CC; border: 1px solid rgba(58,111,160,0.25); }
.badge-poker { background: rgba(109,100,86,0.15); color: var(--ivory); border: 2px solid rgba(109,100,86,0.25); }
.badge-new::after { content: ' \u00B7 NEW'; }

.mini-cards { display: flex; gap: 4px; }
.mini-card { width: 28px; height: 36px; border-radius: 4px; background: var(--ivory); border: 1px solid rgba(201,168,76,0.15); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.mini-card .mv { font-size: 10px; font-weight: 800; line-height: 1; }
.mini-card .ms { font-size: 10px; line-height: 1; }
.mc-red { color: var(--burgundy); }
.mc-black { color: var(--matte-black); }

.vc-name { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 900; color: var(--ivory); letter-spacing: 1px; margin-bottom: 8px; }
.vc-desc { color: var(--ivory-dim); font-size: 13px; line-height: 1.6; margin-bottom: 16px; flex: 1; }

.vc-stats { display: flex; gap: 0; border-top: 1px solid rgba(201,168,76,0.08); padding-top: 14px; margin-bottom: 14px; }
.vc-stat { flex: 1; text-align: center; }
.vc-stat + .vc-stat { border-left: 1px solid rgba(201,168,76,0.08); }
.vc-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 4px; }
.vc-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 800; color: var(--ivory); }

.vc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vc-tag { font-size: 10px; font-weight: 600; color: var(--ivory-faint); padding: 4px 10px; border-radius: 6px; background: rgba(6,30,18,0.5); border: 1px solid rgba(201,168,76,0.06); }
.vc-read { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700; color: var(--antique-gold); letter-spacing: 0.8px; cursor: pointer; transition: color 0.2s; white-space: nowrap; text-decoration: none; margin-left: auto; }
.vc-read:hover { color: var(--antique-gold-bright); }

/* ═══════════ RULES MODAL ═══════════ */
.rules-modal {
display: none; position: fixed; inset: 0;
background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(12,74,48,0.25) 0%, transparent 60%),
    linear-gradient(180deg, var(--felt-deep) 0%, var(--felt) 35%, var(--felt-deep) 100%);
z-index: 200; flex-direction: column;
}
.rules-modal.open { display: flex; }
/* Felt texture */
.rules-modal::before {
content: ''; position: fixed; inset: 0;
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
background-size: 200px; pointer-events: none; opacity: 0.6; z-index: 0;
}

.rm-topbar {
display: flex; align-items: center; justify-content: space-between;
padding: 16px 24px;
background: rgba(8,46,30,0.7);
border-bottom: 1px solid rgba(201,168,76,0.15);
z-index: 201; flex-shrink: 0;
position: relative;
backdrop-filter: blur(8px);
}
.rm-topbar::after {
content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
width: 60%; height: 1px;
background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.rm-info { display: none; flex-direction: column; gap: 2px; }
.rm-title { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; color: var(--antique-gold); letter-spacing: 2px; }
.rm-subtitle { font-size: 11px; color: var(--ivory-faint); font-family: 'JetBrains Mono', monospace; }
.rm-close {
width: 42px; height: 42px; border-radius: 50%;
background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
color: var(--ivory-dim); font-size: 18px;
cursor: pointer; display: flex; align-items: center; justify-content: center;
transition: all 0.2s;
}
.rm-close:hover { background: rgba(201,168,76,0.15); color: var(--ivory); border-color: rgba(201,168,76,0.4); box-shadow: 0 0 12px rgba(201,168,76,0.15); }

.rm-body { flex: 1; overflow-y: auto; padding: 28px 24px; position: relative; z-index: 1; }
.rm-body-inner { max-width: 800px; margin: 0 auto; }

/* ═══════════ RULEBOOK (inside modal) ═══════════ */
.rulebook { background: rgba(8,46,30,0.5); border: 1px solid rgba(201,168,76,0.12); border-radius: 18px; padding: 40px 36px; position: relative; overflow: hidden; }
.rulebook::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--antique-gold-dim), var(--antique-gold), var(--antique-gold-dim)); }

.rb-header { text-align: center; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(201,168,76,0.1); }
.rb-title { font-family: 'Cinzel', serif; font-size: 28px; font-weight: 900; color: var(--ivory); letter-spacing: 3px; margin-bottom: 4px; }
.rb-tagline { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700; color: var(--antique-gold-dim); letter-spacing: 4px; text-transform: uppercase; }

.rb-section { margin-bottom: 32px; }
.rb-section:last-of-type { margin-bottom: 0; }
.rb-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(201,168,76,0.08); }
.rb-section-num { font-family: 'Cinzel', serif; font-size: 12px; font-weight: 900; color: var(--antique-gold); letter-spacing: 1px; white-space: nowrap; }
.rb-section-title { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 900; color: var(--ivory); letter-spacing: 1.5px; }

.rb-rule { margin-bottom: 14px; padding-left: 18px; border-left: 2px solid rgba(201,168,76,0.1); }
.rb-rule:last-child { margin-bottom: 0; }
.rb-rule-name { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; color: var(--antique-gold); letter-spacing: 0.5px; margin-bottom: 4px; }
.rb-rule-text { font-size: 13px; color: var(--ivory-dim); line-height: 1.7; }
.rb-sub-header { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; color: var(--ivory); letter-spacing: 1px; margin: 20px 0 12px; }

.rb-table-wrap { background: rgba(6,30,18,0.4); border: 1px solid rgba(201,168,76,0.1); border-radius: 12px; overflow-x: auto; margin: 16px 0; }
.rb-table { width: 100%; border-collapse: collapse; min-width: 400px; }
.rb-table th { padding: 12px 16px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--antique-gold-dim); text-align: center; background: rgba(14,14,14,0.4); border-bottom: 1px solid rgba(201,168,76,0.1); }
.rb-table th:first-child { text-align: left; padding-left: 20px; }
.rb-table td { padding: 11px 16px; text-align: center; border-bottom: 1px solid rgba(201,168,76,0.05); font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--ivory-dim); }
.rb-table td:first-child { text-align: left; padding-left: 20px; font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--ivory); }
.rb-table tr:last-child td { border-bottom: none; }

.rb-callout { background: rgba(201,168,76,0.05); border: 1px solid rgba(201,168,76,0.1); border-left: 3px solid var(--antique-gold); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 16px 0; font-size: 13px; color: var(--ivory-dim); line-height: 1.6; }
.rb-callout .callout-label { font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700; color: var(--antique-gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }

.rb-ordered { padding-left: 22px; margin: 10px 0; }
.rb-ordered li { font-size: 13px; color: var(--ivory-dim); line-height: 1.7; margin-bottom: 6px; padding-left: 4px; }
.rb-ordered li::marker { color: var(--antique-gold-dim); font-weight: 700; }

.phase-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: var(--matte-black); background: var(--antique-gold); padding: 3px 10px; border-radius: 5px; margin-bottom: 10px; }

.rb-footer { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(201,168,76,0.08); font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ivory); }

/* Coming soon placeholder */
.rb-coming { text-align: center; padding: 60px 20px; }
.rb-coming-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.15; }
.rb-coming-title { font-family: 'Cinzel', serif; font-size: 20px; font-weight: 700; color: var(--antique-gold-dim); letter-spacing: 2px; margin-bottom: 8px; }
.rb-coming-desc { color: var(--ivory-faint); font-size: 14px; }

@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.game-anim { animation: cardIn 0.4s ease-out both; }

@media (max-width: 1000px) { .variants-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
.header h1 { font-size: 26px; letter-spacing: 2px; }
.variants-grid { grid-template-columns: 1fr; }
.vc-name { font-size: 16px; }
.category-header { flex-direction: column; gap: 8px; text-align: center; }
.category-header-left { justify-content: center; }
.rulebook { padding: 28px 18px; }
.rb-title { font-size: 22px; letter-spacing: 2px; }
.rb-section-title { font-size: 15px; }
.rm-topbar { padding: 12px 16px; }
.rm-body { padding: 16px; }
}