.header__cabinet {
  align-items: center;
  gap: 8px;
}

.player-session__balance {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.player-session__profile,
.player-session__logout {
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 10px;
}

.player-session__profile {
  display: inline-flex;
  align-items: center;
  background: #7b4dff;
  text-decoration: none;
}

.player-session__logout {
  background: #f5b51b;
  color: #181818;
}

.form-registry__feedback {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  margin: 12px 0 0;
  min-height: 18px;
}

.form-registry__feedback[data-state="error"] {
  color: #ff7d87;
}

/* Authenticated player controls in the public header. */
.lobby-wallet { position: relative; z-index: 40; }
.lobby-wallet__trigger { align-items: center; background: #26324b; border: 1px solid #7183aa55; border-radius: 9px; color: #fff; cursor: pointer; display: flex; gap: 7px; min-height: 38px; padding: 0 10px; }
.lobby-wallet__trigger strong { font-size: 12px; white-space: nowrap; }
.lobby-wallet__label { color: #bfb4ff; font-size: 11px; font-weight: 800; }
.lobby-wallet__arrow { color: #a8b7d4; font-size: 16px; line-height: 1; }
.lobby-wallet__menu { background: #202d46; border: 1px solid #647aa8; border-radius: 13px; box-shadow: 0 18px 45px #0009; color: #fff; min-width: 272px; padding: 12px; position: absolute; right: 0; top: calc(100% + 8px); }
.lobby-wallet__menu[aria-hidden="true"], .lobby-modal[aria-hidden="true"] { display: none; }
.lobby-wallet__heading { align-items: center; display: flex; font-size: 15px; font-weight: 800; justify-content: space-between; margin: 1px 2px 9px; }
.lobby-wallet__heading a { color: #64e5bb; font-size: 11px; text-decoration: none; }
.lobby-wallet__balances { display: grid; gap: 6px; max-height: 218px; overflow: auto; }
.lobby-wallet__balance { background: #2c3b59; border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; padding: 9px 10px; text-align: left; }
.lobby-wallet__balance:hover { background: #38517b; }
.lobby-wallet__balance span { color: #e8d48a; font-size: 12px; font-weight: 800; grid-row: span 2; align-self: center; }
.lobby-wallet__balance strong { font-size: 13px; text-align: right; }
.lobby-wallet__balance small { color: #aebbd2; font-size: 10px; text-align: right; }
.lobby-wallet__actions { display: grid; gap: 6px; grid-template-columns: 1fr 1fr 1fr; margin-top: 10px; }
.lobby-wallet__action { background: #3c5682; border: 0; border-radius: 7px; color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; min-height: 34px; padding: 5px; }
.lobby-wallet__action--deposit { background: #05cd77; color: #082217; }
.lobby-wallet__action:hover { filter: brightness(1.12); }
.lobby-wallet__profile { align-items: center; background: linear-gradient(135deg, #7654db, #3e8fda); border: 2px solid #b6c5e244; border-radius: 50%; color: #fff; display: inline-flex; font-size: 13px; font-weight: 900; height: 38px; justify-content: center; text-decoration: none; width: 38px; }
.lobby-modal { inset: 0; position: fixed; z-index: 1000; }
.lobby-modal__backdrop { background: #060b17c9; inset: 0; position: absolute; }
.lobby-modal__dialog { background: linear-gradient(160deg, #405b89, #253957); border: 1px solid #8ba6d1; border-radius: 16px; box-shadow: 0 24px 70px #000b; box-sizing: border-box; color: #fff; left: 50%; max-height: min(680px, calc(100vh - 32px)); max-width: calc(100vw - 28px); overflow: auto; padding: 22px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 440px; }
.lobby-modal__close { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 28px; line-height: 1; position: absolute; right: 13px; top: 10px; }
.lobby-modal h2 { font-size: 23px; margin: 0 34px 16px 0; }
.lobby-modal__tabs { background: #2c4265; border-radius: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.lobby-modal__tabs button { background: transparent; border: 0; border-radius: 7px; color: #d5e1f5; cursor: pointer; font-weight: 800; min-height: 37px; }
.lobby-modal__tabs .is-active { background: #789bd2; color: #fff; }
.lobby-payment-grid, .lobby-modal__wallets { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.lobby-payment-grid button, .lobby-modal__wallets button { background: #496b9e; border: 1px solid #82a5d6; border-radius: 10px; color: #fff; cursor: pointer; min-height: 76px; padding: 11px; text-align: left; }
.lobby-payment-grid strong, .lobby-modal__wallets strong { display: block; font-size: 18px; }
.lobby-payment-grid span, .lobby-modal__wallets small { color: #d1ddf0; display: block; font-size: 11px; margin-top: 4px; }
.lobby-payment { align-items: center; display: grid; grid-template-columns: 47px 1fr; column-gap: 10px; overflow: hidden; position: relative; }
.lobby-payment::after { background: radial-gradient(circle, #fff6, transparent 66%); content: ''; height: 115px; opacity: .35; position: absolute; right: -32px; top: -48px; width: 115px; }
.lobby-payment__logo { align-items: center; background: #fff; border-radius: 9px; box-shadow: 0 3px 10px #0003; display: flex !important; font-family: Arial, sans-serif; font-size: 14px !important; font-style: italic; font-weight: 900; grid-row: span 2; height: 38px; justify-content: center; letter-spacing: -1px; margin: 0 !important; position: relative; width: 47px; z-index: 1; }
.lobby-payment strong, .lobby-payment small { position: relative; z-index: 1; }
.lobby-payment small { color: #edf4ff; display: block; font-size: 10px; margin-top: 3px; }
.lobby-payment--visa { background: linear-gradient(135deg, #062a6d, #174fbb) !important; border-color: #71a1ff !important; }
.lobby-payment--visa .lobby-payment__logo { color: #164aa8; font-size: 13px !important; }
.lobby-payment--mastercard { background: linear-gradient(135deg, #23252e, #4a4c56) !important; border-color: #969aaa !important; }
.lobby-payment--mastercard .lobby-payment__logo { background: transparent; box-shadow: none; gap: 0; }
.lobby-payment--mastercard .lobby-payment__logo i { background: #eb001b; border-radius: 50%; display: block; height: 31px; width: 31px; }
.lobby-payment--mastercard .lobby-payment__logo i + i { background: #f79e1b; margin-left: -12px; }
.lobby-payment--usdt { background: linear-gradient(135deg, #087f68, #1cab8d) !important; border-color: #70e7c9 !important; }
.lobby-payment--usdt .lobby-payment__logo { color: #13a889; font-size: 31px !important; font-style: normal; }
.lobby-payment--bitcoin { background: linear-gradient(135deg, #c45c08, #f79619) !important; border-color: #ffd081 !important; }
.lobby-payment--bitcoin .lobby-payment__logo { color: #ef8c18; font-size: 31px !important; font-style: normal; }
.lobby-payment.is-selected { box-shadow: 0 0 0 3px #14e990, 0 10px 22px #05182e80; transform: translateY(-1px); }
.lobby-payment-form { background: linear-gradient(145deg, #1d3557, #152943); border: 1px solid #6087ba; border-radius: 14px; box-shadow: inset 0 1px #ffffff18, 0 8px 24px #09152366; margin-top: 14px; padding: 15px; }
.lobby-payment-form__method { align-items: center; background: #0f2139; border: 1px solid #42658e; border-radius: 10px; display: flex; justify-content: space-between; margin-bottom: 14px; padding: 10px 12px; }
.lobby-payment-form__method span, .lobby-payment-form__label > span { color: #b9cbe3; display: block; font-size: 11px; font-weight: 700; }
.lobby-payment-form__method strong { color: #fff; font-size: 15px; }
.lobby-payment-form__label { display: block; }
.lobby-payment-form__label > span { margin: 0 0 6px 2px; }
.lobby-payment-form__input { align-items: center; background: #0c1e35; border: 1px solid #557da9; border-radius: 10px; display: flex; transition: border-color .15s, box-shadow .15s; }
.lobby-payment-form__input:focus-within { border-color: #20dd98; box-shadow: 0 0 0 3px #20dd9830; }
.lobby-payment-form input { background: transparent; border: 0; box-sizing: border-box; color: #fff; font-size: 22px; font-weight: 800; height: 52px; min-width: 0; outline: 0; padding: 0 13px; width: 100%; }
.lobby-payment-form input::placeholder { color: #7187a5; }
.lobby-payment-form__currency { border-left: 1px solid #385a80; color: #d9e8fb; font-size: 13px; letter-spacing: .04em; margin-right: 12px; padding-left: 12px; }
.lobby-payment-form__quick { display: grid; gap: 7px; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.lobby-payment-form__quick button { background: #284a70; border: 1px solid #527aa5; border-radius: 7px; color: #e6f1ff; cursor: pointer; font-size: 12px; font-weight: 800; padding: 8px 4px; }
.lobby-payment-form__quick button:hover { background: #386391; }
.lobby-payment-form__continue { background: linear-gradient(100deg, #04c978, #22e49a); border: 0; border-radius: 10px; box-shadow: 0 7px 18px #00c87a3d; color: #052b1e; cursor: pointer; font-size: 14px; font-weight: 900; margin-top: 14px; min-height: 48px; padding: 11px; width: 100%; }
.lobby-payment-form__continue:disabled { cursor: not-allowed; opacity: .45; }
.lobby-modal__note, .lobby-modal__empty { color: #d8e5f7; font-size: 12px; line-height: 1.45; margin: 15px 0 0; }
.lobby-modal__history { display: grid; gap: 7px; }
.lobby-modal__history article { background: #2b4163; border-radius: 9px; display: grid; grid-template-columns: 1fr auto; padding: 10px; }
.lobby-modal__history span { font-weight: 800; }
.lobby-modal__history small { color: #c7d5ea; font-size: 10px; grid-column: 1 / -1; margin-top: 4px; }
.lobby-search-result { color: #d9cbff; font-size: 12px; margin: 7px 0 0; }
.lobby-game-hidden { display: none !important; }
@media (max-width: 700px) { .lobby-wallet__menu { max-width: calc(100vw - 24px); min-width: 260px; right: -44px; } .lobby-wallet__trigger strong { max-width: 96px; overflow: hidden; text-overflow: ellipsis; } }

.chat-window__composer {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.chat-window__composer input {
  min-width: 0;
  flex: 1;
  border: 1px solid #ffffff2e;
  border-radius: 8px;
  background: #15151d;
  color: #fff;
  padding: 9px 11px;
}

.chat-window__composer .button {
  min-width: auto;
  padding: 0 12px;
}

.chat-window__head,
.chat-window__messages,
.chat-window__footer,
.chat-community__online {
  position: relative;
  z-index: 1;
}

.chat-window {
  isolation: isolate;
}

/* The room opens through the #global-chat link, including on mobile browsers. */
.chat-window:target { right: 0 !important; opacity: 1 !important; }
/* The hash is the single source of truth for the drawer state. This also
   overrides the legacy `chat-open` class after the close control is pressed. */
html:not(:has(.chat-window:target)) .chat-window { opacity: 0 !important; pointer-events: none; right: -31.25rem !important; }
.chat-window.chat-window--closed { opacity: 0 !important; pointer-events: none; right: -31.25rem !important; }

.chat-window::before {
  z-index: 0;
}

.chat-window__messages {
  background: linear-gradient(180deg, rgba(22, 31, 44, .12), rgba(15, 21, 31, .56));
}

.chat-community__message { display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 9px; align-items: start; padding: 8px 10px; }
.chat-community__online { align-items: center; border-bottom: 1px solid #ffffff1f; color: #d6d0e8; display: flex; font-size: 11px; font-weight: 700; gap: 5px; padding: 0 20px 11px; }
.chat-community__online-avatar { align-items: center; border: 2px solid #1d2636; border-radius: 50%; color: #fff; display: inline-flex; font-size: 9px; font-weight: 800; height: 22px; justify-content: center; margin-left: -7px; width: 22px; }
.chat-community__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px #ffffff22; }
.chat-community__body { min-width: 0; color: #f4f2ff; font-size: 13px; line-height: 1.38; }
.chat-community__meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-community__meta strong { color: #f5c44c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-community__meta time { color: #8d8aa4; font-size: 11px; margin-left: auto; }
.chat-community__badge { border-radius: 999px; background: #6e49df; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; }
.chat-community__text { overflow-wrap: anywhere; margin-top: 2px; }
.chat-community__reply-quote { border-left: 2px solid #e7b63b; color: #a9a5ba; font-size: 11px; margin-top: 5px; overflow: hidden; padding-left: 6px; text-overflow: ellipsis; white-space: nowrap; }
.chat-community__reply { align-self: center; background: transparent; border: 0; color: #a9a5ba; cursor: pointer; font-size: 15px; opacity: .7; padding: 4px; }
.chat-community__actions { align-self: center; display: flex; flex-direction: column; }
.chat-community__reaction-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.chat-community__reaction { align-items: center; background: #ffffff12; border: 1px solid #ffffff24; border-radius: 999px; color: #f4efff; cursor: pointer; display: inline-flex; font-size: 11px; font-weight: 700; min-height: 25px; padding: 3px 8px; }
.chat-community__reaction:hover { background: #6e49df; border-color: #b8a9ff; }
.chat-community__emoji-toggle { background: transparent; border: 0; color: #d6d0e8; cursor: pointer; font-size: 18px; line-height: 1; padding: 6px; }
.chat-community__emoji-menu { align-items: center; background: #253149; border: 1px solid #9c83f4; border-radius: 10px; bottom: calc(100% + 8px); box-shadow: 0 12px 32px #0008; display: flex; gap: 4px; left: 8px; padding: 7px; position: absolute; z-index: 30; }
.chat-community__emoji-option { background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 18px; padding: 5px; }
.chat-community__emoji-option:hover { background: #403166; }
.chat-community__reply:hover { color: #f5c44c; opacity: 1; }
.chat-community__guest { display: block; border-radius: 9px; background: #7150d8; color: #fff; font-size: 13px; font-weight: 800; padding: 11px; text-align: center; text-decoration: none; width: 100%; }
.chat-community__counter { color: #9894a8; font-size: 10px; margin-left: auto; white-space: nowrap; }
.chat-community__send { min-width: 38px !important; padding: 0 !important; width: 38px; }
.chat-community__replying { align-items: center; color: #c4c0d0; display: flex; font-size: 11px; gap: 6px; width: 100%; }
.chat-community__reply-cancel { background: transparent; border: 0; color: #f38b99; cursor: pointer; font-size: 18px; line-height: 1; margin-left: auto; }
.chat-community__empty { color: #eeeafd; font-size: 13px; line-height: 1.5; padding: 28px 16px; text-align: center; }
.chat-community__dialog { background: #253149; border: 1px solid #9c83f4; border-radius: 14px; box-shadow: 0 12px 32px #0008; color: #f4f1ff; left: 18px; padding: 16px 42px 16px 16px; position: absolute; right: 18px; top: 74px; z-index: 8; }
.chat-community__dialog strong { color: #ffd46b; display: block; font-size: 15px; }
.chat-community__dialog p { color: #e4dff4; font-size: 12px; line-height: 1.45; margin: 7px 0 0; }
.chat-community__dialog-close { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; position: absolute; right: 12px; top: 12px; }
.chat-community__settings-form label { color: #ded8ed; display: block; font-size: 11px; font-weight: 700; margin-top: 10px; }
.chat-community__settings-form input { background: #121a28; border: 1px solid #ffffff29; border-radius: 7px; box-sizing: border-box; color: #fff; display: block; margin-top: 4px; padding: 8px; width: 100%; }
.chat-community__settings-form input[type="color"] { height: 38px; padding: 3px; }
.chat-community__settings-save { margin-top: 12px; min-height: 34px; }
.select_chat-window .select__options { display: none !important; }
.chat-community__channel-menu { background: #253149; border: 1px solid #9c83f4; border-radius: 12px; box-shadow: 0 12px 32px #0008; display: flex !important; flex-direction: column !important; left: 20px; overflow: hidden; position: absolute; top: 68px; width: 172px; z-index: 20; }
.chat-community__channel-option { background: transparent; border: 0; color: #f4f1ff; cursor: pointer; display: block !important; flex: 0 0 auto; font: 700 13px/1.2 inherit; padding: 12px 14px; text-align: left; width: 100%; }
.chat-community__channel-option:hover { background: #403166; }
.chat-community__channel-trigger { background: transparent; border: 0; cursor: pointer; height: 60px; left: 20px; opacity: 0; position: absolute; top: 20px; width: 150px; z-index: 12; }

/* A closed fixed chat must not widen the mobile document. */
@media (max-width: 600px) {
  .chat-window { box-sizing: border-box; height: 100dvh; max-width: 100vw; right: 0; top: 0; transform: translateX(100%); width: 100vw; }
  .chat-window:target { right: 0 !important; transform: translateX(0); }
  html:not(:has(.chat-window:target)) .chat-window { right: 0 !important; transform: translateX(100%) !important; }
  .chat-window.chat-window--closed { right: 0 !important; transform: translateX(100%) !important; }
}
.main-banner__image { overflow: hidden; }
.coins-promo-video { display: block; height: 100%; object-fit: cover; object-position: center; width: 100%; }
.main-banner--promo { min-height: 330px; }
.main-banner--promo .main-banner__image { inset: 0; opacity: 1 !important; transform: none !important; width: 100%; }
.main-banner--promo .coins-promo-video { object-position: center center; }
.main-banner--promo { isolation: isolate; position: relative; }
.main-banner--promo .main-banner__image { z-index: 1; }
.main-banner--promo .main-banner__inner { left: clamp(1.35rem, 3.2vw, 3.1rem); max-width: 47%; position: absolute !important; top: 50%; transform: translateY(-50%); z-index: 5; }
.main-banner--promo .main-banner__title { color: #fff; font-size: clamp(1.6rem, 2.55vw, 2.8rem); line-height: 1.08; max-width: 100%; text-shadow: 0 2px 12px #061320; }
.main-banner--promo .main-banner__sub-title { color: #fff; font-size: clamp(.95rem, 1.32vw, 1.2rem); line-height: 1.3; max-width: 100%; text-shadow: 0 2px 10px #061320; }
/* The main banners are informational: registration and social sign-in stay in the header. */
.main-banner--promo .main-banner__row { display: none !important; }

/* Homepage promo strip: stay below the header and preserve the 16:9 source frame. */
.main-block { margin-top: 0; padding-bottom: 22px; position: relative; z-index: 1; }
.main-block__container { max-width: none; padding-inline: 0; }
.main-banner--promo { border-radius: 0 0 24px 24px; min-height: clamp(330px, 30vw, 460px); }
.main-banner--promo .coins-promo-video { background: #0b2037; object-fit: contain; object-position: center center; }
/* Keep the complete original frame visible: do not crop characters or the game machine. */
.main-banner--water .coins-promo-video { object-position: center center; }
@media (min-width: 48em) {
  .main-block__slider,
  .main-block__wrapper,
  .main-block__slide,
  .main-banner--promo {
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Final banner framing: prevent later generic rules from zooming into the video. */
.page-home .main-banner--promo .coins-promo-video {
  object-fit: cover !important;
  object-position: center center !important;
}
@media (max-width: 47.99875em) {
  .main-block { margin-top: -16px; padding-bottom: 18px; }
  .main-banner--promo { aspect-ratio: 2.12 / 1; min-height: 0; border-radius: 0 0 18px 18px; }
  .main-banner--promo .main-banner__image { height: 100%; padding-bottom: 0; position: absolute; }
  .main-banner--promo .coins-promo-video { background: #0b2037; object-fit: contain; object-position: center; position: absolute; inset: 0; }
  .main-banner--water .coins-promo-video { object-position: center; }
  .main-banner--promo .main-banner__inner { left: 1.15rem; max-width: 58%; }
  .main-banner--promo .main-banner__title { font-size: clamp(1.15rem, 5.4vw, 1.55rem); }
  .main-banner--promo .main-banner__sub-title { font-size: clamp(.72rem, 3vw, .9rem); }
}
