/* ═══════════════════════════════════════════════════════
   HAND RANKINGS — Page-specific styles
   ═══════════════════════════════════════════════════════ */

/* Header */
.header {
  text-align: center; margin-bottom: 32px; 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 .subtitle-text {
  color: var(--burgundy-bright); font-size: 12px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase; margin-bottom: 10px;
  font-family: 'Cinzel', serif;
}
.header p { color: var(--ivory-dim); font-size: 14px; letter-spacing: 0.5px; 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; }

/* ═══════════ GAME TABS ═══════════ */
.game-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 32px;
}
.game-tab {
  padding: 12px 32px; border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(8,46,30,0.3);
  color: var(--ivory-faint);
  font-family: 'Cinzel', serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer; transition: all 0.25s;
}
.game-tab:hover {
  border-color: rgba(201,168,76,0.3); color: var(--ivory);
  background: rgba(201,168,76,0.06);
}
.game-tab.active {
  background: var(--antique-gold); color: var(--matte-black);
  border-color: var(--antique-gold);
  box-shadow: 0 0 14px var(--antique-gold-glow);
}
.game-tab .tab-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 800;
  background: rgba(0,0,0,0.15); padding: 2px 6px; border-radius: 4px;
  margin-left: 8px; vertical-align: middle;
}

/* ═══════════ HAND CARDS ═══════════ */
.hand-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }

.hand-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 28px 30px;
  backdrop-filter: blur(4px); position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hand-card:hover { border-color: var(--card-border-hover); box-shadow: var(--shadow-gold); }
.hand-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; border-radius: 16px 0 0 16px;
}

.hand-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 16px;
}
.hand-top-left { display: flex; align-items: center; gap: 16px; }

.hand-rank-badge {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 900;
  color: var(--matte-black); flex-shrink: 0;
}

.hand-name {
  font-family: 'Cinzel', serif; font-size: 22px; font-weight: 900;
  color: var(--ivory); letter-spacing: 1.5px;
}
.hand-aka {
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--ivory-faint); font-style: italic; margin-top: 2px;
}

.hand-rarity {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 6px; flex-shrink: 0;
}
.rarity-legendary { background: rgba(201,168,76,0.15); color: var(--antique-gold); border: 1px solid rgba(201,168,76,0.25); }
.rarity-epic { background: var(--burgundy-glow); color: var(--burgundy-bright); border: 1px solid rgba(123,45,59,0.3); }
.rarity-rare { background: rgba(58,111,160,0.15); color: #7BA8CC; border: 1px solid rgba(58,111,160,0.25); }
.rarity-common { background: rgba(109,100,86,0.15); color: var(--ivory-dim); border: 1px solid rgba(109,100,86,0.25); }

.hand-desc { color: var(--ivory-dim); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

/* Playing cards */
.cards-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hand-example-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 10px;
}

.playing-card {
  width: 76px; height: 108px; border-radius: 10px;
  background: var(--ivory); border: 1px solid rgba(201,168,76,0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative; transition: transform 0.2s;
}
.playing-card:hover { transform: translateY(-4px); }
.playing-card .card-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800; line-height: 1; }
.playing-card .card-suit { font-size: 28px; line-height: 1; }
.playing-card .card-corner {
  position: absolute; top: 5px; left: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 800; line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.playing-card .card-corner .corner-suit { font-size: 11px; }
.suit-red { color: var(--burgundy); }
.suit-black { color: var(--matte-black); }
.playing-card.highlight {
  border-color: var(--antique-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), 0 0 8px var(--antique-gold-glow);
}

/* Bar & badge colors */
.bar-gold::before { background: var(--antique-gold); }
.bar-burgundy::before { background: var(--burgundy); }
.bar-glacial-blue::before { background: var(--glacial-blue); }
.bar-ivory::before { background: var(--ivory-dim); }
.badge-gold { background: var(--antique-gold); }
.badge-burgundy { background: var(--burgundy-bright); }
.badge-glacial-blue { background: var(--glacial-blue); }
.badge-ivory { background: var(--ivory-dim); }

/* ═══════════ QUICK REFERENCE TABLE ═══════════ */
.qr-section { margin-bottom: 40px; }
.qr-table-wrap {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; overflow-x: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.qr-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.qr-table th {
  background: rgba(14,14,14,0.5); padding: 14px 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--antique-gold-dim); text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.qr-table th:first-child { text-align: left; padding-left: 20px; }
.qr-table td {
  padding: 12px 16px; text-align: center; border-bottom: 1px solid rgba(201,168,76,0.06);
  font-size: 13px; color: var(--ivory-dim);
}
.qr-table td:first-child {
  text-align: left; padding-left: 20px;
  font-family: 'Cinzel', serif; font-weight: 700; color: var(--ivory); letter-spacing: 0.5px;
}
.qr-table tr:last-child td { border-bottom: none; }
.qr-table tr:hover { background: rgba(201,168,76,0.03); }
.qr-rank {
  font-family: 'JetBrains Mono', monospace; font-weight: 800;
  color: var(--antique-gold);
}
.qr-dash { color: var(--ivory-faint); opacity: 0.3; }

/* ═══════════ MOBILE ═══════════ */
@media (max-width: 800px) {
  .header h1 { font-size: 26px; letter-spacing: 2px; }
  .hand-card { padding: 22px 18px; }
  .hand-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hand-name { font-size: 18px; }
  .hand-rank-badge { width: 38px; height: 38px; font-size: 16px; }
  .playing-card { width: 60px; height: 86px; border-radius: 8px; }
  .playing-card .card-value { font-size: 18px; }
  .playing-card .card-suit { font-size: 22px; }
  .playing-card .card-corner { font-size: 8px; }
  .playing-card .card-corner .corner-suit { font-size: 9px; }
  .cards-row { gap: 8px; justify-content: center; }
  .game-tab { padding: 10px 20px; font-size: 12px; }
}
