.credit-games-page { max-width: 1000px; margin-inline: auto; }
.credit-games-page > :not(.backbar):not(.prediction-wallet) { margin-left: 20px; margin-right: 20px; }
.credit-games-page { padding-bottom: 28px; }
.credit-games-page button:disabled { opacity: .5; cursor: not-allowed; }
.credit-games-page .back-btn { flex-shrink: 0; }
.credit-game-tabs, .credit-game-actions { display: flex; gap: 12px; margin-block: 22px; flex-wrap: wrap; }
.credit-game-tabs > button { flex: 1; min-width: 120px; }
.credit-game-actions > button { flex: 1; min-width: 100px; }
.credit-game-board { background: #164b37; color: #fff; border: 2px solid #d9be75; border-radius: 24px; padding: 24px; box-shadow: 0 10px 25px #173b2920; }
.credit-game-board .form-help { color: #e0eae3; }
.credit-card-table h3 { color: #fff; margin-block: 0 14px; }
.credit-card-table h3 small { display: block; font-size: .8em; font-weight: 400; color: #dce6df; }
.credit-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.credit-playing-card { display: inline-flex; flex-direction: column; justify-content: space-between; width: 66px; min-height: 94px; padding: 8px 10px; background: #fffdf6; color: #16312a; border-radius: 9px; box-shadow: 0 4px 8px #0003; font-size: 24px; box-sizing: border-box; }
.credit-playing-card > span { align-self: flex-end; font-size: 30px; }
.credit-playing-card.red { color: #b63f3e; }
.credit-playing-card.card-back { justify-content: center; align-items: center; background: repeating-linear-gradient(45deg,#d5b564,#d5b564 3px,#38644e 3px,#38644e 8px); border: 5px solid #fffdf6; color: #fff; font-size: 38px; }
.credit-dealer { border-bottom: 1px solid #ffffff40; padding-bottom: 22px; margin-bottom: 22px; }
.credit-hands { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.credit-hand { border: 2px solid transparent; padding: 12px; border-radius: 14px; min-width: 0; }
.credit-hand.active { border-color: #e7c96e; background: #ffffff0c; }
.credit-hand p { margin-bottom: 0; }
.credit-game-empty { text-align: center; padding: 35px 10px; font-size: 36px; color: #e7c96e; }
.credit-game-empty p { color: #fff; font-size: 18px; }
.credit-game-result { padding: 14px; background: #f4e9b8; color: #30482d; border-radius: 12px; margin-top: 18px; font-weight: 700; overflow-wrap: anywhere; }
.credit-bet-panel, .credit-game-rules, .credit-game-history { background: #fff; border: 1px solid #d3dfd6; border-radius: 20px; padding: 22px; margin-top: 22px; }
.credit-bet-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.credit-bet-options > button { padding-inline: 6px; font-size: 15px; min-width: 0; }
.credit-game-rules summary { cursor: pointer; font-weight: 700; }
.credit-game-rules p { line-height: 1.7; }
.credit-slot-reels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.credit-slot-reel { background: #fffdf5; color: #223b31; border: 3px solid #d9be75; border-radius: 16px; padding: 16px 6px; text-align: center; overflow: hidden; }
.credit-slot-reel > b { display: block; font-size: 14px; line-height: 1.4; margin-top: 10px; overflow-wrap: anywhere; }
.credit-slot-avatar { width: 110px; height: 110px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; overflow: hidden; }
.credit-slot-avatar img, .credit-pay-avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.credit-slot-avatar.has-image .avatar-fallback, .credit-pay-avatar.has-image .avatar-fallback { display: none; }
.credit-slot-machine > p { text-align: center; margin-bottom: 0; }
.credit-slot-grid .credit-slot-reel { padding: 10px 4px; }
.credit-slot-grid .credit-slot-reel { border-color: var(--slot-group, #d9be75); }
.slot-group-tag { display: block; color: #223b31; font-size: 12px; font-weight: 700; margin-bottom: 6px; background: var(--slot-group, #d9be75); border-radius: 6px; }
.credit-slot-grid .credit-slot-avatar { width: 82px; height: 82px; }
.credit-slot-grid .slot-winning-cell { border-color: #ffe28a; background: #fff3bd; box-shadow: 0 0 0 2px #ffe28a; }
.slot-line-results { color: #fff3bd; font-size: 14px; padding-left: 24px; }
.credit-slot-paytable { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.credit-slot-paytable:has(.slot-pay-group) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.slot-pay-group { min-width: 0; padding: 10px; border: 1px solid #dce5de; border-top: 3px solid var(--group-color); border-radius: 12px; background: #f6f8f5; }
.slot-pay-group header { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 8px; font-size: 13px; color: #2c483b; }
.slot-pay-group header b { font-size: 19px; white-space: nowrap; }
.slot-pay-group header small { font-size: 10px; font-weight: 400; margin-left: 2px; }
.slot-pay-tier-label { margin: -3px 0 7px; font-size: 10px; color: #61776b; line-height: 1.4; }
.slot-line-calculation { display: block; font-size: 12px; line-height: 1.6; color: #fff3bd; margin: 3px 0 8px; }
.slot-pay-members { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.slot-pay-members > div { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 5px; }
.slot-pay-members .credit-pay-avatar { width: 36px; height: 36px; min-width: 36px; flex: none; }
.slot-pay-members > div > span:not(.credit-pay-avatar) { font-size: 11px; line-height: 1.35; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.credit-slot-paytable > div { display: flex; align-items: center; gap: 10px; padding: 8px; background: #f3f6f2; border-radius: 12px; }
.credit-slot-paytable > div > span:not(.credit-pay-avatar) { flex: 1; font-size: 14px; overflow-wrap: anywhere; }
.credit-pay-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; position: relative; overflow: hidden; flex-shrink: 0; }
.credit-game-history > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #e4e9e3; padding-block: 12px; }
.spinning .credit-slot-avatar { animation: credit-reel-spin .17s linear infinite; animation-delay: calc(var(--reel)*.03s); }
@keyframes credit-reel-spin { 0% { transform: translateY(-15px); filter: blur(3px); } 100% { transform: translateY(15px); filter: blur(3px); } }
@media (max-width: 520px) {
 .credit-game-board { padding: 16px; }
 .credit-slot-reels { gap: 6px; }
 .credit-slot-avatar { width: 68px; height: 68px; }
 .credit-slot-reel > b { font-size: 12px; }
 .credit-slot-paytable { grid-template-columns: 1fr; }
 .credit-bet-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .credit-game-actions > button { min-width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .spinning .credit-slot-avatar { animation: none; filter: none; } }
.poker-table-meta { color: #e5dba9; font-size: 13px; margin-bottom: 20px; }
.poker-seat h3 { margin: 0 0 12px; color: #fff; }
.poker-seat h3 small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; }
.poker-seat > b { display: block; margin-top: 8px; color: #e7c96e; }
.poker-button { display: inline-block; padding: 3px 8px; background: #f5e5a9; color: #27432d; border-radius: 16px; font-size: 12px; }
.poker-community { padding: 24px 0; margin: 24px 0; border-top: 1px solid #ffffff40; border-bottom: 1px solid #ffffff40; }
.poker-community > b { display: block; color: #f4d66d; margin-bottom: 12px; }
.poker-community .credit-cards { gap: 6px; flex-wrap: nowrap; }
.poker-community .credit-playing-card { width: 44px; min-height: 65px; font-size: 16px; padding: 6px; flex-shrink: 0; }
.poker-community .credit-playing-card > span { font-size: 22px; }
.poker-board-slot { width: 44px; height: 65px; border: 1px dashed #ffffff60; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #d5dfd7; font-size: 11px; flex-shrink: 0; box-sizing: border-box; }
.poker-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 12px 0; }
.poker-presets button { padding: 10px 4px; font-size: 13px; }
.poker-presets.preflop { grid-template-columns: repeat(3,minmax(0,1fr)); }
.poker-page .credit-bet-panel label { display: block; font-size: 14px; }
.poker-page input { display: block; width: 100%; padding: 12px; border: 1px solid #b7cbbd; border-radius: 10px; margin-top: 8px; background: #fff; color: #173b2a; box-sizing: border-box; }
