/* Player pages: shared layer loaded after each legacy page stylesheet. */
body.kb-redesign {
  --primary: #E5B95F;
  --primary-dark: #B68D45;
  --dark: #080B0F;
  --bg: #080B0F;
  --surface: #10161D;
  --surface2: #18212B;
  --gray: #18212B;
  --card-bg: #10161D;
  --glass: #18212B;
  --border: #2A343D;
  --text: #F5F3EE;
  --text-light: #B9C1C8;
  --text-muted: #B9C1C8;
  background: #080B0F;
  color: #F5F3EE;
  font-family: "Golos Text", system-ui, sans-serif;
}
body.kb-redesign :is(main, .container, .content, .card, .modal, .modal-content, button, input, textarea, select, label, a) {
  font-family: "Golos Text", system-ui, sans-serif;
}
body.kb-redesign :is(input, textarea, select, button, a):focus { box-shadow: none; }
body.kb-redesign :is(input, textarea, select, button, a):focus-visible,
body.kb-redesign :is(.method-button, .faq-question, .tab, .settings-tab):focus-visible {
  outline: 2px solid #E5B95F;
  outline-offset: 3px;
  box-shadow: none;
}
body.kb-redesign :is(input, textarea, select):focus { border-color: #E5B95F; }
body.kb-redesign :is(input, textarea, select) { color: #F5F3EE; }
body.kb-redesign :is(input, textarea)::placeholder { color: #8C949B; opacity: 1; }
body.kb-redesign :is(button, a, .method-button, .game-card, .support-card, .stat-card, .level-card) {
  transition-duration: .18s;
  transition-timing-function: ease;
}
body.kb-redesign :is(button, a, .method-button, .game-card, .support-card, .stat-card, .level-card):hover { box-shadow: none; }
body.kb-redesign :is(button, a, .method-button):active { transform: translateY(0); }
body.kb-redesign .sidebar-logo { padding: 16px 0 18px; margin-bottom: 8px; border-bottom-color: #2A343D; }
body.kb-redesign .sidebar-logo a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; box-shadow: none; }
body.kb-redesign .sidebar-logo img { display: block; width: 38px; height: 38px; object-fit: contain; }
body.kb-redesign .sidebar .nav-links a i { color: #E5B95F; }
body.kb-redesign .sidebar .online-counter i,
body.kb-redesign .sidebar .online-counter span { color: #E5B95F; }
body.kb-redesign .site-header { box-shadow: none; }
body.kb-redesign .content { min-width: 0; }
body.kb-redesign:not(.kb-page-index):not(.kb-page-slots) main { width: min(100%, 1180px); margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }
body.kb-redesign :is(.page-title, .page-header h1, .dice-title, .tower-title, .cases-title) {
  color: #F5F3EE;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
  text-shadow: none;
}
body.kb-redesign :is(.page-header p, .page-sub, .card-desc, .card-hint, .muted, .stat-label, .form-label) { color: #B9C1C8; }
body.kb-redesign :is(.support-card, .promo-card, .tg-card, .profile-card, .wager-progress-card, .stat-card, .level-card, .graph-card, .ref-link-card, .deposit-card, .withdraw-card, .faq-container, .rules-card, .terms-container, .rank-card, .game-card, .control-bar, .controls-section, .wheel-section, .history-section, .bets-section) {
  background: #10161D;
  border: 1px solid #2A343D;
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
}
body.kb-redesign :is(.support-card, .stat-card, .level-card, .game-card):hover { transform: translateY(-2px); border-color: #8A7145; }
body.kb-redesign :is(.support-card, .promo-card, .tg-card, .ref-link-card, .deposit-card, .withdraw-card, .level-card, .game-card)::before,
body.kb-redesign :is(.promo-card, .tg-card, .ref-link-card, .deposit-card, .withdraw-card)::after { display: none; }
body.kb-redesign :is(.form-input, .form-control, .promo-input, .ref-link-input, .bet-input, .control input[type="number"], .bet-input-row, .input-row, .referral-link input) {
  background: #18212B;
  color: #F5F3EE;
  border: 1px solid #34414D;
  border-radius: 9px;
  box-shadow: none;
}
body.kb-redesign :is(.form-input, .form-control, .promo-input, .ref-link-input, .bet-input, .control input[type="number"], .bet-input-row, .input-row, .referral-link input):focus,
body.kb-redesign :is(.bet-input-row, .input-row):focus-within { border-color: #E5B95F; box-shadow: none; outline: none; }
body.kb-redesign :is(.form-btn, .btn-primary, .btn-deposit, .btn-withdraw, .copy-btn, .withdraw-btn, .contact-btn, .support-link, .how-to-play-btn, .open-case-btn, .place-bet-btn, .action-btn.state-start, .default_btn, .btn-confirm) {
  background: #E5B95F;
  border: 1px solid #E5B95F;
  color: #11100D;
  border-radius: 9px;
  box-shadow: none;
  font-weight: 700;
  text-shadow: none;
}
body.kb-redesign :is(.form-btn, .btn-primary, .btn-deposit, .btn-withdraw, .copy-btn, .withdraw-btn, .contact-btn, .support-link, .how-to-play-btn, .open-case-btn, .place-bet-btn, .action-btn.state-start, .default_btn, .btn-confirm):hover:not(:disabled) {
  background: #F2CF80;
  border-color: #F2CF80;
  color: #11100D;
  transform: translateY(-2px);
  box-shadow: none;
}
body.kb-redesign :is(.btn-ghost, .btn-blue, .tg-btn, .btn-auto, .btn-auto-pick, .fast-open-btn, .btn-cancel, .cancel-btn, .how-works-btn, .back-btn) {
  background: #18212B;
  border: 1px solid #34414D;
  color: #F5F3EE;
  box-shadow: none;
  border-radius: 9px;
}
body.kb-redesign :is(.btn-ghost, .btn-blue, .tg-btn, .btn-auto, .btn-auto-pick, .fast-open-btn, .btn-cancel, .cancel-btn, .how-works-btn, .back-btn):hover:not(:disabled) {
  background: #23303B;
  color: #E5B95F;
  border-color: #E5B95F;
  transform: translateY(-2px);
  box-shadow: none;
}
body.kb-redesign :is(.form-btn, .btn-primary, .btn-deposit, .btn-withdraw, .copy-btn, .withdraw-btn, .contact-btn, .support-link, .how-to-play-btn, .open-case-btn, .place-bet-btn, .action-btn, .default_btn) { min-height: 44px; }
body.kb-redesign :is(.table-wrap, .table-section, .referral-table) { max-width: 100%; overflow-x: auto; scrollbar-color: #8A7145 #18212B; }
body.kb-redesign :is(th, td) { border-color: #2A343D; }
body.kb-redesign th { color: #B9C1C8; background: #18212B; }
body.kb-redesign :is(.toast, .notification-area, .alert-box, .empty-state) { border-radius: 10px; box-shadow: none; }
body.kb-redesign :is(.modal, .modal-content) { background-color: #10161D; color: #F5F3EE; }

/* Support and help: simpler layout and genuinely keyboard-operable questions. */
body.kb-page-support .page-header { text-align: left; margin-bottom: 30px; }
body.kb-page-support .page-header p { margin-left: 0; }
body.kb-page-support .support-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
body.kb-page-support .support-card { padding: clamp(20px, 3vw, 30px); }
body.kb-page-support .support-card h2 { font-size: 21px; }
body.kb-page-support .icon-circle { background: #302715; color: #E5B95F; }
body.kb-page-support .contact-btn { justify-content: flex-start; text-align: left; }
body.kb-page-support .contact-btn i { color: #11100D; }
body.kb-page-support .support-hours { margin-top: 24px; padding-top: 20px; border-top: 1px solid #2A343D; color: #B9C1C8; font-size: 14px; }
body.kb-page-support .faq-item,
body.kb-page-dwn-faq .faq-item { background: #18212B; border: 1px solid #2A343D; border-radius: 9px; }
body.kb-page-support .faq-question,
body.kb-page-dwn-faq .faq-question { min-height: 52px; color: #F5F3EE; }
body.kb-page-support .faq-question:hover,
body.kb-page-dwn-faq .faq-question:hover { background: #23303B; }
body.kb-page-support .faq-answer,
body.kb-page-dwn-faq .faq-answer { color: #B9C1C8; }

/* Documents: reading width and calm surfaces. */
body:is(.kb-page-dwn-faq, .kb-page-dwn-terms, .kb-page-dwn-rules, .kb-page-dwn-ranks) :is(.page-header, .faq-container, .terms-container, .rules-card, .ranks-container) { max-width: 940px; margin-inline: auto; }
body:is(.kb-page-dwn-faq, .kb-page-dwn-terms, .kb-page-dwn-rules, .kb-page-dwn-ranks) :is(.terms-container, .rules-card, .faq-container) { line-height: 1.72; }
body:is(.kb-page-dwn-faq, .kb-page-dwn-terms, .kb-page-dwn-rules, .kb-page-dwn-ranks) :is(.important-box, .warning-box) { background: #2A2318; border-color: #8A7145; color: #F5F3EE; }
body.kb-page-dwn-ranks .rank-card { overflow: hidden; }

/* Bonuses and account. */
body.kb-page-bonus :is(.page-title, .page-title span) { font-family: "Golos Text", system-ui, sans-serif; letter-spacing: -.035em; }
body.kb-page-bonus :is(.btn-green, .btn-gold) { background: #E5B95F; color: #11100D; border-color: #E5B95F; box-shadow: none; }
body.kb-page-bonus :is(.btn-green, .btn-gold):hover:not(:disabled) { background: #F2CF80; color: #11100D; border-color: #F2CF80; box-shadow: none; }
body.kb-page-bonus .btn-blue { background: #18212B; color: #F5F3EE; border-color: #34414D; }
body.kb-page-bonus .promo-input:focus { outline: none; border-color: #E5B95F; box-shadow: none; }
body.kb-page-bonus .section-divider { color: #B9C1C8; }
body.kb-page-profile :is(.tab.active, .settings-tab.active) { color: #E5B95F; border-color: #E5B95F; background: #2A2318; }
body.kb-page-profile :is(.profile-balance, .stat-value, .section-title, .card-value) { color: #E5B95F; }
body.kb-page-referrals :is(.stat-icon, .level-card .icon, .stat-value) { color: #E5B95F; }
body.kb-page-referrals .level-card.current { border-color: #E5B95F; background: #2A2318; }
body.kb-page-system-partners :is(.stat-icon-wrap, .stat-value, .ref-link-label i) { color: #E5B95F; }
body.kb-page-system-partners .graph-card { min-width: 0; }
body.kb-page-system-partners .ref-link-input:focus { outline: none; box-shadow: none; }

/* Money pages. Currency artwork, QR and addresses retain their own contrast. */
body.kb-page-pay-deposit,
body.kb-page-withdraw { background: #080B0F; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw)::before { display: none; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) .page-title { margin-block: 12px 28px; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) :is(.deposit-card, .withdraw-card) { max-width: 680px; padding: clamp(20px, 3vw, 36px); overflow: visible; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) .method-button { min-height: 128px; background: #18212B; border: 1px solid #34414D; border-radius: 10px; box-shadow: none; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) .method-button:hover { transform: translateY(-2px); border-color: #E5B95F; background: #23303B; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) .method-button.active { background: #2A2318; border-color: #E5B95F; box-shadow: none; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) .min-amount { color: #B9C1C8; }
body:is(.kb-page-pay-deposit, .kb-page-withdraw) .form-control:focus { outline: none; box-shadow: none; }
body.kb-page-pay-deposit .btn-deposit,
body.kb-page-withdraw .btn-withdraw { background: #E5B95F; color: #11100D; box-shadow: none; }
body.kb-page-withdraw .confirm-checkbox input:checked { background: #E5B95F; border-color: #E5B95F; }

/* Mini-games: common frame and betting controls, while outcomes keep their color. */
body:is(.kb-page-games-coinflip, .kb-page-games-miner, .kb-page-games-dice, .kb-page-games-cases, .kb-page-games-tower, .kb-page-games-x50) :is(.content, main) { background: transparent; }
body:is(.kb-page-games-coinflip, .kb-page-games-miner, .kb-page-games-dice, .kb-page-games-cases, .kb-page-games-tower, .kb-page-games-x50) :is(.game_area, .coinflip-layout, .game-layout, .game_layout, .case-area, .cases-container) { max-width: 100%; min-width: 0; }
body:is(.kb-page-games-coinflip, .kb-page-games-miner, .kb-page-games-dice, .kb-page-games-cases, .kb-page-games-tower, .kb-page-games-x50) :is(.control-bar, .stats-bar, .centerwin, .wheel-section, .controls-section, .history-section, .bets-section) { border-color: #2A343D; box-shadow: none; }
body:is(.kb-page-games-coinflip, .kb-page-games-miner, .kb-page-games-dice, .kb-page-games-cases, .kb-page-games-tower, .kb-page-games-x50) :is(.bet-control-btn, .mines-control-btn, .bet-quick-btn, .mode-btn, .range-btn, .choice-btn) { background: #18212B; border: 1px solid #34414D; color: #F5F3EE; box-shadow: none; }
body:is(.kb-page-games-coinflip, .kb-page-games-miner, .kb-page-games-dice, .kb-page-games-cases, .kb-page-games-tower, .kb-page-games-x50) :is(.bet-control-btn, .mines-control-btn, .bet-quick-btn, .mode-btn, .range-btn):hover:not(:disabled) { background: #23303B; border-color: #E5B95F; color: #E5B95F; transform: translateY(-2px); box-shadow: none; }
body.kb-page-games-tower .mode-btn.active { background: #2A2318; border-color: #E5B95F; color: #E5B95F; }
body.kb-page-games-x50 .place-bet-btn:not(:disabled) { background: #E5B95F; border-color: #E5B95F; color: #11100D; box-shadow: none; }
body.kb-page-games-cases :is(.game-card, .live-feed-section) { background: #10161D; border-color: #2A343D; box-shadow: none; }

@media (max-width: 768px) {
  body.kb-redesign:not(.kb-page-index):not(.kb-page-slots) main { padding: 24px 16px 100px; }
  body.kb-page-support .support-container { grid-template-columns: 1fr; }
  body.kb-page-support .page-header { margin-bottom: 20px; }
  body:is(.kb-page-pay-deposit, .kb-page-withdraw) .methods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body:is(.kb-page-pay-deposit, .kb-page-withdraw) .method-button { min-height: 110px; padding: 12px 8px; }
  body:is(.kb-page-pay-deposit, .kb-page-withdraw) :is(.deposit-card, .withdraw-card) { padding: 20px 16px; }
  body.kb-page-system-partners :is(.stats-grid, .graphs-section) { min-width: 0; }
}
@media (max-width: 420px) {
  body.kb-redesign :is(.page-title, .page-header h1, .dice-title, .tower-title, .cases-title) { font-size: 27px; }
  body.kb-page-support .support-card { padding: 18px; }
  body:is(.kb-page-pay-deposit, .kb-page-withdraw) .method-icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  body.kb-redesign *, body.kb-redesign *::before, body.kb-redesign *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body.kb-page-support .support-container { align-items: start; }
body:is(.kb-page-support, .kb-page-dwn-faq) .faq-question {
  display: flex;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: #F5F3EE;
  text-align: left;
  font: 600 15px/1.45 "Golos Text", system-ui, sans-serif;
  cursor: pointer;
}
body:is(.kb-page-support, .kb-page-dwn-faq) .faq-question i { margin-left: auto; }

body.kb-page-system-banned,
body.kb-page-system-maintenance { background: #080B0F; }
body.kb-page-system-banned::before { background: radial-gradient(circle at 50% 30%, rgba(229,185,95,.06), transparent 65%); backdrop-filter: none; }
body.kb-page-system-banned .card,
body.kb-page-system-maintenance .main-card { background: #10161D; border: 1px solid #2A343D; border-radius: 16px; box-shadow: none; backdrop-filter: none; }
body.kb-page-system-banned h1 { background: none; color: #F5F3EE; -webkit-text-fill-color: currentColor; }
body.kb-page-system-banned .ban-info { background: #2A1E20; border-color: #77484B; }
body.kb-page-system-banned .ban-info strong { color: #E5B95F; }
body.kb-page-system-maintenance .bg-glow { opacity: .05; animation: none; }
body.kb-page-system-maintenance .bg-glow-3 { background: #E5B95F; }
body.kb-page-system-maintenance :is(.status-badge, .info-block, .contact-row) { background: #18212B; border-color: #2A343D; }
body.kb-page-system-maintenance :is(h1, .subtitle) { color: #F5F3EE; }
body.kb-page-bonus { --green:#E5B95F; --green-dim:#2A2318; --green-glow:transparent; --gold:#E5B95F; --blue:#E5B95F; --font-display:"Golos Text",system-ui,sans-serif; }
body.kb-page-bonus .section-divider i { color:#E5B95F!important; }
body.kb-page-bonus .btn.btn-ghost { background:#18212B; border-color:#34414D; color:#F5F3EE; }
body.kb-page-bonus .btn.btn-ghost:hover { background:#23303B; border-color:#E5B95F; color:#E5B95F; }
body.kb-page-bonus .btn.btn-blue { background:#18212B; border-color:#34414D; color:#F5F3EE; }
body.kb-page-bonus .btn.btn-blue:hover { background:#23303B; border-color:#E5B95F; color:#E5B95F; }
body.kb-page-pay-deposit .plisio-card .methods-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
body.kb-page-pay-deposit .plisio-card .method-button { min-height: 155px; }
body.kb-page-referrals { --gradient:#E5B95F; --neon-white:#F5F3EE; }
body.kb-page-referrals .section-title { color:#F5F3EE; text-shadow:none; text-align:left; font-size:clamp(22px,2.5vw,28px); letter-spacing:-.025em; }
body.kb-page-referrals .referral-link { background:#10161D; border:1px solid #2A343D; border-radius:14px; box-shadow:none; }
body.kb-page-referrals .referral-link:hover { box-shadow:none; border-color:#8A7145; }
body.kb-page-referrals .referral-link button { background:#E5B95F; color:#11100D; border:1px solid #E5B95F; box-shadow:none; min-height:44px; }
body.kb-page-referrals .referral-link button:hover { background:#F2CF80; transform:translateY(-2px); }
body.kb-page-referrals .level-card.current { background:#2A2318; border-color:#E5B95F; box-shadow:none; }
body.kb-page-referrals .partners-section { background:#10161D; border-color:#2A343D; box-shadow:none; }
body.kb-page-referrals .partners-section:hover { box-shadow:none; border-color:#8A7145; }
body.kb-page-referrals :is(.graph-card, .stats-grid) { min-width:0; }
@media(max-width:768px){body.kb-page-pay-deposit .plisio-card .methods-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.kb-page-pay-deposit .plisio-card .method-button{min-height:134px}}
body.kb-page-system-maintenance .gear-bg { background:#2A2318; border-color:#8A7145; }
body.kb-page-system-maintenance .gear-bg::before { border-color:#8A7145; }
body.kb-page-system-maintenance .gear-bg i { color:#E5B95F; }
body.kb-page-system-maintenance .gear-wrapper::after { border-color:#8A7145; }
body.kb-page-games-cases .game-card img { filter:brightness(.62); }
body.kb-page-dwn-ranks .rank-icon { background:#2A2318; color:#E5B95F; }
body.kb-page-dwn-ranks .rank-card.platinum { border-color:#E5B95F; box-shadow:none; }
@media(max-width:768px){body.kb-page-system-partners .page-title{flex-wrap:wrap;gap:8px}body.kb-page-system-partners .page-title h2{width:100%;font-size:24px;line-height:1.2}body.kb-page-system-partners .page-title .badge{margin-left:0}}
body.kb-page-dwn-rules .rule-number { background:#2A2318; color:#E5B95F; border:1px solid #8A7145; box-shadow:none; }
body.kb-page-system-banned .btn-support { background:#E5B95F; color:#11100D; border-color:#E5B95F; box-shadow:none; }
body.kb-page-system-banned .btn-support:hover { background:#F2CF80; box-shadow:none; transform:translateY(-2px); }
body.kb-page-bonus { --blue-dim:#2A2318; }
body.kb-page-bonus .first-dep-card { background:#10161D; border:1px solid #2A343D; border-radius:14px; box-shadow:none; }
body.kb-page-bonus .first-dep-card::before,
body.kb-page-bonus .first-dep-card::after { display:none; }
body.kb-page-bonus :is(.first-dep-badge, .first-dep-meta) { background:#2A2318; border-color:#8A7145; }
body.kb-page-bonus .first-dep-amount,
body.kb-page-bonus .first-dep-meta .dc-meta-val.blue { color:#E5B95F; }
