:root {
  --background: #e0e8f3;
  --navy: #253992;
  --blue: #2c80ff;
  --text: #495463;
  --muted: #758698;
  --border: #cddbed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.7 Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1140px; padding: 0 15px; margin: 0 auto; }
.topbar { height: 52.5px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.brand-row { position: relative; text-align: center; }
.brand { display: block; font-size: 25px; line-height: 42.5px; font-weight: 600; padding: 5px; }
.menu-toggle { display: none; }
.navbar { height: 56px; background: #fff; box-shadow: 0 4px 35px #0000001a; }
.nav-inner, .nav-links { display: flex; align-items: center; height: 100%; }
.nav-inner { justify-content: space-between; }
.nav-links { gap: 30px; }
.nav-link { display: flex; align-items: center; height: 100%; position: relative; font-size: 14px; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue); }
.nav-link:hover { color: var(--blue); }
.social-button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--border); border-radius: 3px; color: #385b8a; font-size: 14px; height: 43px; }
.social-button svg { width: 15px; height: 15px; fill: #3b5c9f; }
.nav-social { height: 35px; min-width: 135px; color: var(--muted); border-color: #c5cfdb; }
.social-button:hover { background: #f6f9fd; }
.page-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 50px; }
.card { background: #fff; border-radius: 4px; box-shadow: 2px 2px 20px #c3d0e0; padding: 25px 30px; min-width: 0; }
h1, h2 { color: var(--navy); font-size: 21px; font-weight: 500; line-height: 1.3; margin: 0; }
.auth-social { width: 100%; margin-top: 18px; }
.separator { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 18px 30px 16px; color: #476282; font-size: 12px; }
.separator::before, .separator::after { content: ''; height: 2px; background: #e6edf5; flex: 1; }
input { display: block; width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 4px; padding: 10px 15px; color: #465464; background: #fff; font-size: 15px; line-height: 20px; }
input::placeholder { color: #758ba6; opacity: 1; }
input:focus { border-color: #7aabff; }
#login { margin-bottom: 20px; }
.captcha-holder { height: 51px; margin: 17px 0 13px; position: relative; }
.captcha { width: 196px; height: 50px; max-width: none; border: 1px solid #d8d8d8; background: #fafafa; box-shadow: 0 1px 2px #0000001a; color: #111; position: absolute; left: 0; top: 0; font-family: Arial, sans-serif; }
.captcha-top { display: flex; align-items: center; gap: 8px; padding: 13px 7px 0; }
.captcha-box { height: 18px; width: 18px; border: 1px solid #666; background: #fff; }
.captcha-label { font-size: 9px; line-height: 12px; }
.captcha-warning { font-size: 5px; line-height: 5px; position: absolute; left: 2px; bottom: 0; color: #555; }
.captcha-brand { position: absolute; right: 7px; top: 3px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 5px; line-height: 7px; color: #555; }
.captcha-brand svg { width: 27px; height: 24px; }
.primary-button { background: var(--blue); color: #fff; border: 1px solid #5c9bff; border-radius: 4px; font-size: 14px; font-weight: 600; height: 43px; box-shadow: 0 8px 20px #2c80ff40; }
.primary-button:hover { background: #1e70ec; }
.login-button { width: 100%; }
.register-button { display: block; color: var(--blue); background: none; padding: 0; font-weight: 600; font-size: 15px; margin: 39px auto 0; line-height: 25.5px; text-align: center; }
.game-tabs { height: 48px; border-bottom: 2px solid #f0f5fb; margin-top: 0; display: flex; }
.game-tab { display: flex; align-items: end; padding: 0 3px 7px; font-size: 14px; color: var(--blue); border-bottom: 2px solid var(--blue); margin-bottom: -2px; }
.game-area { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 114px 58px auto; column-gap: 64px; padding-top: 32px; }
.bet-settings { grid-column: 1; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field-group label { display: block; margin-bottom: 8px; font-size: 14px; }
.field-group input { text-align: center; }
.quick-controls { margin-top: 20px; text-align: center; }
.quick-controls > div { display: flex; justify-content: center; gap: 5px; }
.quick-controls > div + div { margin-top: 6px; }
.quick-controls button { color: var(--text); background: #e9eff9; padding: 3px 6px; border-radius: 2px; font-size: 12px; line-height: 18px; }
.quick-controls button:hover { background: #d4e3fa; }
.payout { grid-column: 2; grid-row: 1; text-align: center; padding-top: 2px; }
.payout output { display: block; color: var(--blue); font-size: 64px; line-height: 1; font-weight: 400; margin-bottom: 6px; }
.payout output.long-payout { font-size: 40px; overflow-wrap: anywhere; }
.payout > span { color: #758698; font-size: 15px; font-weight: 500; line-height: 18px; }
.play-controls { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 6px; }
.play-controls > div { text-align: center; }
.play-controls span { display: block; font-size: 12px; line-height: 18px; color: #607793; margin-bottom: 6px; white-space: nowrap; }
.play-button { width: 100%; height: 42px; background: #758698; color: #fff; font-size: 14px; border-radius: 3px; border: 1px solid #8c9cae; }
.play-button:hover { background: #65788d; }
.game-hash { grid-column: 1; grid-row: 3; width: 100%; text-align: center; margin-top: 0; }
.game-hash > span { font-size: 12px; }
.game-hash p { margin: 0; overflow-wrap: anywhere; line-height: 25.5px; }
.history { margin-top: 79px; padding-bottom: 60px; }
.history-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.online { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.online-dot { width: 7px; height: 7px; background: #0fd38b; border-radius: 50%; box-shadow: 0 0 0 1px #def9ee; }
#history-toggle { background: transparent; padding: 10px; margin-left: auto; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.chevron { display: block; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; width: 11px; height: 11px; transform: rotate(45deg) translateY(-3px); }
#history-toggle[aria-expanded="false"] .chevron { transform: rotate(225deg) translate(-2px,-2px); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
th { font-size: 12px; color: var(--blue); text-transform: uppercase; font-weight: 600; height: 38px; padding: 0 7px 8px; text-align: center; }
td { height: 42px; padding: 0 7px; text-align: center; }
.skeleton { display: block; width: 60px; height: 10px; max-width: 90%; margin: 0 auto; background: #f2f4f5; border-radius: 5px; }
.footer { display: flex; gap: 30px; padding-top: 65px; padding-bottom: 28px; color: #71869c; font-size: 13px; }
.footer a:hover { color: var(--blue); }
.notice { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); display: flex; gap: 20px; align-items: center; background: #fff; padding: 16px 20px; border-radius: 5px; box-shadow: 0 4px 25px #25399240; border-left: 3px solid var(--blue); font-size: 14px; }
.notice button { flex-shrink: 0; background: none; font-size: 24px; color: var(--muted); line-height: 1; }
@media (max-width: 1199px) and (min-width: 992px) {
  .container { max-width: 960px; }
  .page-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .game-area { column-gap: 52px; }
}
@media (max-width: 991px) {
  .container { max-width: 720px; }
  .page-layout { grid-template-columns: 1fr; gap: 15px; margin-top: 15px; }
  .topbar { height: 52.5px; }
  .menu-toggle { display: flex; position: absolute; left: 15px; top: 13px; flex-direction: column; gap: 6px; padding: 2px 0; width: 28px; background: transparent; }
  .menu-toggle span { width: 28px; height: 1px; background: #fff; }
  .navbar { display: none; height: auto; }
  .navbar.is-open { display: block; }
  .nav-inner { display: block; padding-bottom: 15px; }
  .nav-links { display: block; }
  .nav-link { padding: 10px 0; }
  .nav-link.active::after { right: auto; width: 54px; }
  .nav-social { margin-top: 12px; }
  .auth-card { padding: 18px 20px 20px; }
  .separator { width: 140px; margin: 18px auto 16px; }
  .captcha-holder { margin-left: 20px; }
  .register-button { margin-top: 39px; }
}
@media (max-width: 575px) {
  .container { max-width: none; }
  h1, h2 { font-size: 18px; }
  .game-card { padding: 18px 20px 25px; }
  .game-tabs { height: 45px; }
  .game-tab { font-size: 12px; padding-bottom: 7px; }
  .game-area { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0; padding-top: 23px; }
  .payout { grid-column: 1; grid-row: 1; padding-top: 0; padding-bottom: 18px; }
  .payout output { font-size: 64px; margin-bottom: 10px; }
  .bet-settings { grid-row: 2; gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-group { min-width: 0; }
  .quick-controls > div { flex-wrap: wrap; }
  .play-controls { grid-column: 1; grid-row: 3; gap: 30px; padding-top: 16px; }
  .game-hash { display: none; }
  .history { margin-top: 160px; padding-bottom: 65px; }
  .history-heading { gap: 25px; margin-bottom: 25px; }
  .history-heading h2 { white-space: nowrap; }
  .online-dot { box-shadow: 0 0 0 5px #e3fbf2; }
  #history-toggle { padding: 7px; }
  table { min-width: 0; }
  th:nth-child(n+5), td:nth-child(n+5) { display: none; }
  .footer { padding-top: 60px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 3px; }
}
@media (max-width: 360px) {
  .payout output.long-payout { font-size: 36px; }
  .bet-settings, .play-controls { gap: 16px; }
  .quick-controls button { padding-left: 4px; padding-right: 4px; font-size: 11px; }
  .history-heading { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
