/* Рулетка-джекпот (16.11.2026): страница /roulette, вкладка в чате, банк в меню. Цвета — как в шапке сайта. */
.rl-wrap { --rl-bg: #1c1e26; --rl-panel: #23252f; --rl-panel2: #2a2d39; --rl-line: #343847; --rl-text: #e9eaf0; --rl-muted: #9aa0b2;
  --rl-accent: #ff7a1a; --rl-accent2: #ff5c00; --rl-yellow: #ffd400; --rl-ok: #47d16c; --rl-bad: #ff4d6d;
  color: var(--rl-text); font-size: 14px; }
.rl-page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.rl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rl-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: .3px; }
.rl-head p { margin: 4px 0 0; color: var(--rl-muted); }
.rl-badge-test { display: inline-block; margin-left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: middle;
  background: rgba(255, 122, 26, .15); color: var(--rl-accent); }

.rl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.rl-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rl-card { background: var(--rl-panel); border: 1px solid var(--rl-line); border-radius: 14px; padding: 16px; }
.rl-round-id { color: var(--rl-muted); font-size: 12.5px; margin-left: auto; }
.rl-a-main, .rl-a-form, .rl-a-players, .rl-a-history, .rl-a-rules { margin: 0; }
.rl-card__title { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--rl-muted); margin: 0 0 12px; font-weight: 700; }

/* банк и статус */
.rl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rl-bank { display: flex; align-items: baseline; gap: 8px; }
.rl-bank__label { color: var(--rl-muted); font-size: 13px; }
.rl-bank__num { white-space: nowrap; }
.rl-bank__val { font-size: 34px; font-weight: 800; color: var(--rl-yellow); line-height: 1; }
.rl-bank__cur { font-size: 18px; font-weight: 700; color: var(--rl-yellow); }
.rl-status { text-align: right; }
.rl-status__main { font-size: 17px; font-weight: 700; }
.rl-status__sub { color: var(--rl-muted); font-size: 12.5px; margin-top: 2px; }
.rl-timer { height: 6px; background: var(--rl-panel2); border-radius: 4px; overflow: hidden; margin: 12px 0 14px; }
.rl-timer__fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--rl-accent2), var(--rl-accent)); transition: width .5s linear; }

/* барабан */
.rl-strip { position: relative; overflow: hidden; height: 100px; border-radius: 12px; background: var(--rl-bg); border: 1px solid var(--rl-line); }
.rl-strip::before, .rl-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.rl-strip::before { left: 0; background: linear-gradient(90deg, var(--rl-bg), transparent); }
.rl-strip::after { right: 0; background: linear-gradient(-90deg, var(--rl-bg), transparent); }
.rl-strip__pointer { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--rl-yellow); z-index: 3;
  box-shadow: 0 0 12px rgba(255, 212, 0, .8); }
.rl-strip__track { display: flex; align-items: center; gap: 6px; padding: 0; height: 100%; box-sizing: border-box; will-change: transform; }
.rl-tile { flex: 0 0 70px; height: 70px; border-radius: 10px; border: 2px solid var(--rl-line); overflow: hidden; background: var(--rl-panel2); box-sizing: border-box; }
.rl-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-strip--empty::after { content: "Здесь появятся участники раунда"; position: absolute; inset: 0; width: auto; display: flex; align-items: center;
  justify-content: center; color: var(--rl-muted); background: none; }

/* моя ставка */
.rl-my { display: flex; align-items: center; gap: 18px; margin-top: 12px; color: var(--rl-muted); font-size: 13px; }
.rl-my b { color: var(--rl-text); }

/* форма */
.rl-form { display: flex; flex-direction: column; gap: 10px; }
.rl-amount-row { display: flex; gap: 8px; position: relative; }
.rl-amount { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--rl-line); background: var(--rl-bg); color: var(--rl-text);
  font-size: 18px; font-weight: 700; padding: 0 12px; outline: none; }
.rl-amount:focus { border-color: var(--rl-accent); }
.rl-amount { padding-right: 44px; }
.rl-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 7px; border: 0; cursor: pointer;
  background: var(--rl-panel2); color: var(--rl-muted); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rl-clear:hover { color: var(--rl-text); background: var(--rl-line); }
.rl-clear i { display: block; line-height: 1; }
.rl-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.rl-quick button { flex: 1 1 auto; min-width: 48px; height: 32px; border-radius: 8px; border: 1px solid var(--rl-line); background: var(--rl-panel2);
  color: var(--rl-text); font-weight: 700; cursor: pointer; font-size: 13px; }
.rl-quick button:hover { border-color: var(--rl-accent); }
.rl-bet-btn { height: 48px; border: 0; border-radius: 10px; background: linear-gradient(90deg, var(--rl-accent2), var(--rl-accent)); color: #fff;
  font-size: 16px; font-weight: 800; cursor: pointer; letter-spacing: .3px; }
.rl-free-btn { height: 42px; border-radius: 10px; border: 1px dashed var(--rl-yellow); background: rgba(255, 212, 0, .07); color: var(--rl-yellow);
  font-weight: 800; cursor: pointer; }
.rl-bet-btn:disabled, .rl-free-btn:disabled { opacity: .45; cursor: default; }
.rl-welcome { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35;
  background: linear-gradient(90deg, rgba(71, 209, 108, .16), rgba(71, 209, 108, .04)); border: 1px solid rgba(71, 209, 108, .35); }
.rl-welcome[hidden] { display: none; }
.rl-welcome__ico { font-size: 22px; line-height: 1; }
.rl-welcome__text { color: var(--rl-muted); }
.rl-welcome__text b { display: block; color: var(--rl-ok); font-size: 14px; }
.rl-msg { min-height: 18px; font-size: 13px; }
.rl-msg--ok { color: var(--rl-ok); }
.rl-msg--err { color: var(--rl-bad); }
.rl-rules { display: flex; flex-direction: column; gap: 12px; }
.rl-rule { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.rl-rule__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--rl-panel2); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.rl-rule b { display: block; font-size: 13.5px; color: var(--rl-text); }
.rl-rule span:not(.rl-rule__ico) { display: block; font-size: 12.5px; color: var(--rl-muted); line-height: 1.4; margin-top: 1px; }
.rl-short { display: none; }

/* проверка «не бот» */
.rl-human { border: 1px solid var(--rl-accent); border-radius: 10px; padding: 10px; background: rgba(255, 122, 26, .08); }
.rl-human__title { font-weight: 700; margin-bottom: 8px; }
.rl-human__opts { display: flex; gap: 8px; }
.rl-human__opt { flex: 1; height: 44px; font-size: 22px; border-radius: 10px; border: 1px solid var(--rl-line); background: var(--rl-panel2); cursor: pointer; }

/* игроки */
.rl-players { display: flex; flex-direction: column; gap: 6px; }
.rl-player { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 58px; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 10px; background: var(--rl-panel2); overflow: hidden; }
.rl-player--me { outline: 1px solid var(--rl-accent); }
.rl-player__ava { width: 34px; height: 34px; border-radius: 50%; border: 2px solid; object-fit: cover; }
.rl-player__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rl-player__amt { font-weight: 700; }
.rl-player__ch { text-align: right; color: var(--rl-yellow); font-weight: 800; }
.rl-player__bar { position: absolute; left: 0; bottom: 0; height: 3px; opacity: .9; }
.rl-tag { display: inline-block; vertical-align: middle; position: relative; top: -1px; margin-left: 4px; font-size: 10px; line-height: 14px; padding: 0 5px; border-radius: 4px; background: rgba(71, 209, 108, .15); color: var(--rl-ok); font-weight: 700; }
.rl-empty { color: var(--rl-muted); font-size: 13px; padding: 8px 2px; }

/* история и проверка */
.rl-history { display: flex; flex-direction: column; gap: 6px; }
.rl-hist { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 52px auto; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 9px; background: var(--rl-panel2); }
.rl-hist__ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.rl-hist__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-hist__prize { color: var(--rl-ok); font-weight: 800; }
.rl-hist__ch { color: var(--rl-muted); text-align: right; font-size: 12.5px; }
.rl-hist__check { border: 1px solid var(--rl-line); background: transparent; color: var(--rl-muted); border-radius: 7px; padding: 3px 8px; font-size: 12px; cursor: pointer; }
.rl-hist__check:hover { color: var(--rl-text); border-color: var(--rl-accent); }
.rl-verify { font-size: 12px; line-height: 1.6; color: var(--rl-muted); padding: 8px 10px; border-left: 2px solid var(--rl-accent); margin: -2px 0 4px; word-break: break-all; }
.rl-verify code { color: var(--rl-text); font-size: 11.5px; }
.rl-verify__note { margin-top: 4px; }
.rl-ok { color: var(--rl-ok); }
.rl-bad { color: var(--rl-bad); }
.rl-fair { font-size: 12px; color: var(--rl-muted); word-break: break-all; margin-top: 10px; }
.rl-fair code { color: var(--rl-text); }

/* вкладка в чате */
.chat-app.rl-on .chat-body, .chat-app.rl-on .chat-footer, .chat-app.rl-on #chatScrollBtn, .chat-app.rl-on #chatNotificationsArea,
.chat-app.rl-on #pmConversations, .chat-app.rl-on #friendsPanel, .chat-app.rl-on #pmDialog, .chat-app.rl-on .rl-live { display: none !important; }
.rl-mini { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rl-mini[hidden] { display: none !important; }
.rl-mini .rl-bank__val { font-size: 26px; }
.rl-mini .rl-strip { height: 66px; }
.rl-mini .rl-tile { flex-basis: 48px; height: 48px; border-width: 2px; border-radius: 8px; }
.rl-mini .rl-strip__track { padding: 0; }
.rl-mini .rl-top { flex-wrap: nowrap; align-items: center; gap: 10px; }
.rl-mini .rl-bank { flex-direction: column; align-items: flex-start; gap: 0; flex: 0 0 auto; }
.rl-mini .rl-bank__label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.rl-mini .rl-bank__cur { font-size: 15px; }
.rl-mini .rl-status { text-align: right; min-width: 0; flex: 1 1 auto; }
.rl-mini .rl-status__main, .rl-mini .rl-status__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-mini .rl-status__main { font-size: 14px; }
.rl-mini .rl-status__sub { font-size: 11.5px; }
.rl-mini .rl-timer { margin: 4px 0; }
.rl-mini .rl-open-page { text-align: center; font-size: 13px; color: var(--rl-accent); text-decoration: none; font-weight: 700; padding: 4px; }
.rl-mini .rl-strip--empty { display: none; }
.rl-tab-bank { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 8px; font-size: 10.5px; font-weight: 800;
  background: rgba(255, 212, 0, .16); color: #ffd400; vertical-align: 1px; }
.rl-tab-bank[hidden] { display: none; }
@media (max-width: 420px) { .chat-tabs:has(#rlChatTab) .chat-tab { padding-left: 3px; padding-right: 3px; font-size: 11.5px; } .chat-tabs:has(#rlChatTab) .chat-tab i { display: none; } }

/* живая плашка над общим чатом */
.rl-live { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-bottom: 1px solid #2a2e35; cursor: pointer; text-align: left;
  padding: 8px 12px; font: inherit; font-size: 12.5px; color: #e9eaf0; background: linear-gradient(90deg, rgba(255, 122, 26, .22), rgba(255, 122, 26, .05)); }
.rl-live[hidden] { display: none; }
.rl-live:hover { background: linear-gradient(90deg, rgba(255, 122, 26, .3), rgba(255, 122, 26, .08)); }
.rl-live__ico { font-size: 15px; line-height: 1; color: #ff9a3c; }
.rl-live__txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9ccd6; }
.rl-live__txt b { color: #fff; }
.rl-live__txt { display: flex; align-items: baseline; gap: 10px; }
.rl-live__bank { color: #ffd400; font-weight: 800; }
.rl-live__st { color: #c9ccd6; overflow: hidden; text-overflow: ellipsis; }
.rl-live__go { flex: 0 0 auto; font-weight: 800; color: #ff9a3c; }

/* банк в меню */
.nav2__badge--rl { background: rgba(255, 212, 0, .14); color: #ffd400; }
.js-rl-nav-bank[hidden] { display: none !important; }

@media (max-width: 900px) {
  .rl-grid { display: flex; flex-direction: column; align-items: stretch; }
  .rl-col { display: contents; }
  .rl-a-main { order: 1; } .rl-a-form { order: 2; } .rl-a-players { order: 3; } .rl-a-history { order: 4; } .rl-a-rules { order: 5; }
  .rl-head h1 { font-size: 24px; }
  .rl-bank__val { font-size: 28px; }
  .rl-strip { height: 76px; }
  .rl-tile { flex-basis: 56px; height: 56px; }
  .rl-top { flex-wrap: nowrap; align-items: center; gap: 20px; }
  .rl-bank { flex-direction: column; align-items: flex-start; gap: 2px; flex: 0 0 auto; }
  .rl-bank__label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
  .rl-status { text-align: right; min-width: 0; }
  .rl-status__main { font-size: 15px; }
  .rl-status__sub { font-size: 12px; }
  .rl-long { display: none; }
  .rl-short { display: inline; }
}

/* разделы во вкладке чата */
.rl-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--rl-muted); padding-top: 12px; border-top: 1px solid var(--rl-line); }

/* победитель: подсветка плитки, карточка поверх барабана, конфетти */
.rl-tile--win { border-color: #ffd400 !important; box-shadow: 0 0 0 2px #ffd400, 0 0 22px rgba(255, 212, 0, .75); position: relative; z-index: 1; }
.rl-win { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 0 22px;
  background: radial-gradient(ellipse at center, rgba(48, 36, 10, .97), rgba(18, 20, 26, .98)); animation: rlWinIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.rl-win__ava { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #ffd400; box-shadow: 0 0 18px rgba(255, 212, 0, .7);
  animation: rlWinGlow 1.6s ease-in-out infinite alternate; flex: 0 0 auto; }
.rl-win__who { min-width: 0; line-height: 1.2; }
.rl-win__title { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #ffd400; }
.rl-win__lucky { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 122, 26, .22); color: #ff9a3c; font-size: 11px; font-weight: 800; }
.rl-win__name { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.rl-win__prize { font-size: 26px; font-weight: 900; color: #47d16c; text-shadow: 0 0 14px rgba(71, 209, 108, .45); }
.rl-win--me .rl-win__prize { color: #ffd400; text-shadow: 0 0 16px rgba(255, 212, 0, .6); }
.rl-win__prize { font-size: 32px; line-height: 1; white-space: nowrap; }
.rl-win__meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #9aa0b2; white-space: nowrap; }
.rl-win__meta b { color: #e9eaf0; }
.rl-a-main { position: relative; overflow: hidden; }
.rl-mini { position: relative; }
.rl-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.rl-confetti i { position: absolute; top: -14px; width: 7px; height: 12px; border-radius: 2px; animation: rlFall var(--d) cubic-bezier(.25, .6, .5, 1) var(--delay) forwards; }
@keyframes rlFall { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@keyframes rlWinIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rlWinGlow { from { box-shadow: 0 0 10px rgba(255, 212, 0, .5); } to { box-shadow: 0 0 26px rgba(255, 212, 0, .95); } }
.rl-mini .rl-win { gap: 10px; }
.rl-mini .rl-win__ava { width: 40px; height: 40px; border-width: 2px; }
.rl-mini .rl-win__name { font-size: 13px; max-width: 150px; }
.rl-mini .rl-win__prize { font-size: 19px; }
.rl-mini .rl-win__meta, .rl-mini .rl-win__lucky { display: none; }
.rl-mini .rl-win { gap: 12px; padding: 0 10px; }
.rl-mini .rl-win__prize { font-size: 20px; }
@media (max-width: 900px) { .rl-win { gap: 14px; padding: 0 12px; } .rl-win__prize { font-size: 22px; } .rl-win__ava { width: 50px; height: 50px; } .rl-win__name { max-width: 140px; } .rl-win__meta { display: none; } }

/* барабан во вкладке чата не сжимается */
.rl-mini > * { flex-shrink: 0; }
.rl-mini .rl-strip { height: 66px; }
/* кнопка звука */
.rl-sound { margin-left: 10px; width: 30px; height: 26px; border-radius: 7px; border: 1px solid var(--rl-line); background: var(--rl-panel2); color: var(--rl-text); cursor: pointer; font-size: 12px; }
.rl-sound.is-off { color: var(--rl-muted); opacity: .7; }
.rl-mini .rl-sound { margin-left: auto; }
/* последние 5 секунд */
.rl-hot .rl-timer__fill { background: linear-gradient(90deg, #ff2d55, #ff4d6d); animation: rlPulse .5s ease-in-out infinite alternate; }
.rl-hot .rl-status__main { color: #ff4d6d; animation: rlPulse .5s ease-in-out infinite alternate; }
@keyframes rlPulse { from { opacity: 1; } to { opacity: .5; } }
.rl-bank__val { display: inline-block; }
.rl-bump { animation: rlBump .45s ease; }
@keyframes rlBump { 0% { transform: scale(1); } 40% { transform: scale(1.22); color: #fff; } 100% { transform: scale(1); } }
/* золотой раунд — только оформление */
.rl-gold-tag { display: none; align-items: center; gap: 6px; margin-left: 12px; padding: 6px 11px 4px 9px; line-height: 1; border-radius: 999px; align-self: center;
  font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: #3a2700; white-space: nowrap;
  border: 1px solid rgba(255, 245, 200, .7);
  background: linear-gradient(110deg, #c48a00 0%, #ffd400 28%, #fff4b8 42%, #ffd400 56%, #e0a800 100%); background-size: 250% 100%;
  box-shadow: 0 0 0 1px rgba(255, 212, 0, .25), 0 0 16px rgba(255, 196, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45); animation: rlShine 2.6s linear infinite; }
.rl-gold-tag i { display: block; font-size: 11px; line-height: 1; color: #7a4f00; }
@keyframes rlShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.rl-gold .rl-gold-tag { display: inline-flex; }
.rl-gold .rl-a-main, .rl-mini.rl-gold { border-color: rgba(255, 212, 0, .55); background: linear-gradient(180deg, rgba(255, 212, 0, .08), var(--rl-panel) 60%); }
.rl-gold .rl-strip { border-color: #ffd400; box-shadow: inset 0 0 24px rgba(255, 212, 0, .25), 0 0 14px rgba(255, 212, 0, .2); }
.rl-live.rl-gold { background: linear-gradient(90deg, rgba(255, 212, 0, .32), rgba(255, 212, 0, .06)); }
.rl-mini .rl-gold-tag { margin-left: 0; margin-top: 2px; }

/* общие стили сайта дают transition: all — внутри рулетки это мигание формы при любом изменении; сбрасываем и включаем точечно */
.rl-wrap, .rl-wrap *, .rl-live, .rl-live * { transition: none; }
.rl-wrap .rl-timer__fill { transition: width .5s linear; }
.rl-wrap button { transition: background-color .15s, border-color .15s, color .15s, opacity .15s; }
