/* === playing-card.css === */
.playing-card { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); align-items: start; justify-items: start; width: 100%; min-width: 0; aspect-ratio: 5 / 7; margin: 0; padding: 6px 7px; background: #F8FAFC; border: 1px solid rgba(15, 23, 42, 0.14); border-radius: 8px; box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45); color: #0F172A; text-align: left; font-variant-numeric: tabular-nums; }
.playing-card .playing-card-rank { display: block; margin: 0; font-size: 17px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.playing-card .playing-card-suit { display: block; align-self: center; justify-self: center; margin: 0; font-size: 28px; font-weight: 400; line-height: 1; }
.playing-card.playing-card-red { color: #B91C1C; }
.playing-card.playing-card-black { color: #0F172A; }
.playing-card.is-down { background: repeating-linear-gradient(45deg, #1E293B 0, #1E293B 6px, #273549 6px, #273549 12px); border-color: rgba(249, 115, 22, 0.45); box-shadow: inset 0 0 0 3px #131A2E, 0 6px 16px rgba(2, 6, 23, 0.45); }
.playing-card.is-down .playing-card-rank, .playing-card.is-down .playing-card-suit { font-size: 0; color: transparent; }
@media (min-width: 768px) {
  .playing-card { padding: 8px 9px; border-radius: 10px; }
  .playing-card .playing-card-rank { font-size: 21px; }
  .playing-card .playing-card-suit { font-size: 36px; }
}

/* === poker-deal.css === */
.poker-deal { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; padding: 20px 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 16px; text-align: center; }
.poker-deal .poker-deal-title { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: #F97316; }
.poker-deal h2.poker-deal-title, .poker-deal h3.poker-deal-title, .poker-deal h4.poker-deal-title { font-size: 12px; letter-spacing: 0.14em; }
.poker-deal .poker-deal-table { width: 100%; max-width: 440px; margin: 0; padding: 18px 12px; background: radial-gradient(ellipse at 50% 35%, #13382D 0%, #0E2A22 72%); border: 1px solid rgba(74, 222, 128, 0.22); border-radius: 12px; }
.poker-deal .poker-deal-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; perspective: 600px; }
.poker-deal .poker-deal-card { transition: box-shadow 0.2s, transform 0.2s; }
.poker-deal .poker-deal-card.is-scoring { box-shadow: 0 0 0 2px #F97316, 0 0 16px rgba(249, 115, 22, 0.55); transform: translateY(-4px); }
.poker-deal .poker-deal-hand.is-dealt .poker-deal-card { animation: pokerDealIn 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.poker-deal .poker-deal-hand.is-dealt .poker-deal-card:nth-child(2) { animation-delay: 0.08s; }
.poker-deal .poker-deal-hand.is-dealt .poker-deal-card:nth-child(3) { animation-delay: 0.16s; }
.poker-deal .poker-deal-hand.is-dealt .poker-deal-card:nth-child(4) { animation-delay: 0.24s; }
.poker-deal .poker-deal-hand.is-dealt .poker-deal-card:nth-child(5) { animation-delay: 0.32s; }
.poker-deal .poker-deal-result { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 70px; margin: 0; }
.poker-deal .poker-deal-name { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: #ffffff; }
.poker-deal .poker-deal-odds { font-size: 14px; line-height: 1.5; color: #CBD5E1; }
.poker-deal .poker-deal-paytable { font-size: 13px; line-height: 1.5; color: #94A3B8; }
.poker-deal .poker-deal-actions { margin: 0; }
.poker-deal .poker-deal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; background: transparent; border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; color: #ffffff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.poker-deal .poker-deal-button:hover { background-color: rgba(249, 115, 22, 0.12); border-color: #F97316; }
.poker-deal .poker-deal-button:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }
.poker-deal .poker-deal-note { margin: 0; max-width: 380px; font-size: 13px; line-height: 1.5; color: #94A3B8; }
@keyframes pokerDealIn { from { opacity: 0; transform: translateY(-16px) rotateY(90deg); } to { opacity: 1; transform: translateY(0) rotateY(0deg); } }
@media (prefers-reduced-motion: reduce) {
  .poker-deal .poker-deal-hand.is-dealt .poker-deal-card { animation: none; }
  .poker-deal .poker-deal-card { transition: none; }
}
@media (min-width: 768px) {
  .poker-deal { gap: 18px; padding: 24px; }
  .poker-deal .poker-deal-table { padding: 22px 16px; }
  .poker-deal .poker-deal-hand { gap: 10px; }
  .poker-deal .poker-deal-name { font-size: 21px; }
}

/* === paytable-explorer.css === */
.paytable-explorer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 0 32px; padding: 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 14px; }
.paytable-explorer .paytable-explorer-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; }
.paytable-explorer .paytable-explorer-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.paytable-explorer .paytable-explorer-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.paytable-explorer .paytable-explorer-option { min-height: 40px; padding: 8px 16px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; color: #CBD5E1; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.paytable-explorer .paytable-explorer-option:hover { border-color: rgba(249, 115, 22, 0.45); }
.paytable-explorer .paytable-explorer-option.is-active { background: rgba(249, 115, 22, 0.14); border-color: #F97316; color: #ffffff; }
.paytable-explorer .paytable-explorer-option:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.paytable-explorer .paytable-explorer-table-box { min-width: 0; margin: 0; background: #0B1324; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; overflow: hidden; }
.paytable-explorer .paytable-explorer-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.paytable-explorer .paytable-explorer-table th { padding: 10px 14px; background: #162032; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; text-align: left; }
.paytable-explorer .paytable-explorer-table th.paytable-explorer-pays { text-align: right; white-space: nowrap; }
.paytable-explorer .paytable-explorer-table td { padding: 9px 14px; border-top: 1px solid rgba(148, 163, 184, 0.08); font-size: 15px; font-weight: 500; line-height: 1.35; color: #CBD5E1; transition: background-color 0.25s; }
.paytable-explorer .paytable-explorer-table td.paytable-explorer-pays { font-weight: 800; color: #FBBF24; text-align: right; white-space: nowrap; }
.paytable-explorer .paytable-explorer-tag { display: inline-block; margin: 0 0 0 8px; padding: 2px 8px; background: rgba(249, 115, 22, 0.12); border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: #F97316; vertical-align: 1px; }
.paytable-explorer .paytable-explorer-was { display: block; font-size: 12px; font-weight: 500; line-height: 1.3; color: #94A3B8; }
.paytable-explorer .paytable-explorer-row.is-changed td { background: rgba(239, 68, 68, 0.10); }
.paytable-explorer .paytable-explorer-row.is-changed td.paytable-explorer-pays { color: #F87171; }
.paytable-explorer .paytable-explorer-row.is-same .paytable-explorer-was { display: none; }
.paytable-explorer .paytable-explorer-summary { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 18px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.paytable-explorer .paytable-explorer-name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #ffffff; }
.paytable-explorer h2.paytable-explorer-name, .paytable-explorer h3.paytable-explorer-name, .paytable-explorer h4.paytable-explorer-name { font-size: 19px; }
.paytable-explorer .paytable-explorer-return { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.paytable-explorer .paytable-explorer-return-value { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #F97316; font-variant-numeric: tabular-nums; }
.paytable-explorer .paytable-explorer-return-label { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.paytable-explorer .paytable-explorer-meter { margin: 0; }
.paytable-explorer .paytable-explorer-meter-track { position: relative; display: block; height: 10px; background: rgba(148, 163, 184, 0.12); border-radius: 999px; }
.paytable-explorer .paytable-explorer-meter-fill { display: block; height: 100%; background: linear-gradient(90deg, #C2410C 0%, #F97316 100%); border-radius: 999px; transition: width 0.4s ease; }
.paytable-explorer .paytable-explorer-meter-fill-96 { width: 92.3%; }
.paytable-explorer .paytable-explorer-meter-fill-85 { width: 55%; }
.paytable-explorer .paytable-explorer-meter-fill-75 { width: 35.8%; }
.paytable-explorer .paytable-explorer-meter-fill-65 { width: 16.7%; }
.paytable-explorer .paytable-explorer-meter-mark { position: absolute; top: -4px; right: 0; width: 2px; height: 18px; background: #ffffff; border-radius: 2px; }
.paytable-explorer .paytable-explorer-meter-scale { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0; font-size: 12px; line-height: 1.3; color: #64748B; }
.paytable-explorer .paytable-explorer-stats { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.paytable-explorer .paytable-explorer-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 0 0 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.paytable-explorer .paytable-explorer-stat-label { font-size: 14px; line-height: 1.4; color: #94A3B8; }
.paytable-explorer .paytable-explorer-stat-value { font-size: 16px; font-weight: 800; line-height: 1.3; color: #ffffff; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paytable-explorer .paytable-explorer-note { margin: 0; font-size: 14px; line-height: 1.6; color: #94A3B8; }
@media (prefers-reduced-motion: reduce) {
  .paytable-explorer .paytable-explorer-meter-fill { transition: none; }
}
@media (min-width: 768px) {
  .paytable-explorer { gap: 22px; margin: 0 0 40px; padding: 22px; }
  .paytable-explorer .paytable-explorer-table td { padding: 10px 16px; font-size: 16px; }
  .paytable-explorer .paytable-explorer-table th { padding: 10px 16px; }
  .paytable-explorer .paytable-explorer-summary { padding: 20px; }
  .paytable-explorer .paytable-explorer-name, .paytable-explorer h2.paytable-explorer-name, .paytable-explorer h3.paytable-explorer-name, .paytable-explorer h4.paytable-explorer-name { font-size: 21px; }
}
@media (min-width: 1024px) {
  .paytable-explorer { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 24px; padding: 24px; }
}

/* === hold-trainer.css === */
.hold-trainer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 0 32px; padding: 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 14px; }
.hold-trainer .hold-trainer-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; }
.hold-trainer .hold-trainer-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.hold-trainer .hold-trainer-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hold-trainer .hold-trainer-option { min-width: 44px; min-height: 40px; padding: 8px 14px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; color: #CBD5E1; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.hold-trainer .hold-trainer-option:hover { border-color: rgba(249, 115, 22, 0.45); }
.hold-trainer .hold-trainer-option.is-active { background: rgba(249, 115, 22, 0.14); border-color: #F97316; color: #ffffff; }
.hold-trainer .hold-trainer-option-random { border-style: dashed; }
.hold-trainer .hold-trainer-option:focus-visible, .hold-trainer .hold-trainer-card:focus-visible, .hold-trainer .hold-trainer-button:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }
.hold-trainer .hold-trainer-table { margin: 0; padding: 22px 12px 18px; background: radial-gradient(ellipse at 50% 35%, #13382D 0%, #0E2A22 72%); border: 1px solid rgba(74, 222, 128, 0.22); border-radius: 12px; }
.hold-trainer .hold-trainer-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto; }
.hold-trainer .hold-trainer-card { font-family: inherit; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s; }
.hold-trainer .hold-trainer-card:hover { box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.6), 0 6px 16px rgba(2, 6, 23, 0.45); }
.hold-trainer .hold-trainer-tag { display: none; position: absolute; left: 7%; right: 7%; bottom: 6px; margin: 0; padding: 2px 0; background: #1D4ED8; border-radius: 4px; font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; text-align: center; }
.hold-trainer .hold-trainer-card.is-held { transform: translateY(-8px); box-shadow: 0 0 0 2px #93C5FD, 0 10px 20px rgba(2, 6, 23, 0.5); }
.hold-trainer .hold-trainer-card.is-held .hold-trainer-tag { display: block; }
.hold-trainer .hold-trainer-hand.is-checked .hold-trainer-card { opacity: 0.45; }
.hold-trainer .hold-trainer-hand.is-checked .hold-trainer-card.is-standard { opacity: 1; box-shadow: 0 0 0 3px #F97316, 0 0 18px rgba(249, 115, 22, 0.55); }
.hold-trainer .hold-trainer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.hold-trainer .hold-trainer-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; background: transparent; border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; color: #ffffff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.hold-trainer .hold-trainer-button:hover { background-color: rgba(249, 115, 22, 0.12); border-color: #F97316; }
.hold-trainer .hold-trainer-button-reset { border-color: rgba(148, 163, 184, 0.30); color: #CBD5E1; }
.hold-trainer .hold-trainer-button-reset:hover { background-color: rgba(148, 163, 184, 0.10); border-color: rgba(148, 163, 184, 0.55); }
.hold-trainer .hold-trainer-result { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px 18px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.hold-trainer .hold-trainer-result-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: #ffffff; }
.hold-trainer h2.hold-trainer-result-title, .hold-trainer h3.hold-trainer-result-title, .hold-trainer h4.hold-trainer-result-title { font-size: 18px; }
.hold-trainer .hold-trainer-result-text { margin: 0; font-size: 15px; line-height: 1.6; color: #CBD5E1; }
.hold-trainer .hold-trainer-compare { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #94A3B8; }
.hold-trainer .hold-trainer-compare.is-match { color: #4ADE80; }
.hold-trainer .hold-trainer-compare.is-differs { color: #FBBF24; }
.hold-trainer .hold-trainer-ladder { min-width: 0; margin: 0; padding: 16px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.hold-trainer .hold-trainer-ladder-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: #F97316; }
.hold-trainer h2.hold-trainer-ladder-title, .hold-trainer h3.hold-trainer-ladder-title, .hold-trainer h4.hold-trainer-ladder-title { font-size: 12px; letter-spacing: 0.14em; }
.hold-trainer .hold-trainer-ladder-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #94A3B8; }
.hold-trainer .hold-trainer-steps { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hold-trainer .hold-trainer-step { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 4px 8px; border-radius: 6px; font-size: 14px; line-height: 1.4; color: #CBD5E1; transition: background-color 0.2s, color 0.2s; }
.hold-trainer .hold-trainer-step-num { flex: 0 0 22px; font-size: 12px; font-weight: 800; line-height: 1.4; color: #64748B; text-align: right; font-variant-numeric: tabular-nums; }
.hold-trainer .hold-trainer-step.is-current { background: rgba(249, 115, 22, 0.16); color: #ffffff; font-weight: 700; }
.hold-trainer .hold-trainer-step.is-current .hold-trainer-step-num { color: #F97316; }
.hold-trainer .hold-trainer-note { margin: 0; font-size: 13px; line-height: 1.6; color: #94A3B8; }
@media (prefers-reduced-motion: reduce) {
  .hold-trainer .hold-trainer-card, .hold-trainer .hold-trainer-step { transition: none; }
}
@media (min-width: 768px) {
  .hold-trainer { gap: 22px; margin: 0 0 40px; padding: 22px; }
  .hold-trainer .hold-trainer-table { padding: 30px 20px 24px; }
  .hold-trainer .hold-trainer-hand { gap: 12px; }
  .hold-trainer .hold-trainer-tag { bottom: 8px; font-size: 11px; }
  .hold-trainer .hold-trainer-result-title, .hold-trainer h2.hold-trainer-result-title, .hold-trainer h3.hold-trainer-result-title, .hold-trainer h4.hold-trainer-result-title { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hold-trainer { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 24px; padding: 24px; }
}
