:root {
  --app-header: 104px;
  --app-sidebar: clamp(90px, 6.5625vw, 126px);
  --app-feed: clamp(260px, 18.54vw, 356px);
  --app-gutter: clamp(24px, 2.8vw, 54px);
}
html, body { height: auto; min-height: 100%; }
#root { height: auto; min-height: 100dvh; overflow: visible; }
.Home {
  grid-template: var(--app-header) minmax(0, 1fr) / var(--app-sidebar) minmax(0, 1fr) var(--app-feed) !important;
  min-height: 100dvh;
  height: auto;
  padding-bottom: 0;
}
.Home.Home_wide { grid-template-columns: var(--app-sidebar) minmax(0, 1fr) 0 !important; }
.Home > :is(.JackpotPage, .Coinflip, .PageContent, .SupportPage, .payment-layout) {
  grid-area: 2 / 2 / 3 / 3 !important;
  min-width: 0;
  min-height: 0;
  height: auto;
  border-top: 0;
  border-left: 1px solid #3a2f22;
}
.Home.Home_wide > .Coinflip { grid-column: 2 / 4 !important; }
.Home > .Sidebar {
  display: flex !important;
  position: sticky;
  top: var(--app-header);
  height: calc(100dvh - var(--app-header));
  min-height: 0;
  overflow-y: auto;
  overflow-x: clip;
  padding-bottom: 20px;
  gap: 24px;
}
.Sidebar .Games { margin-top: 36px; gap: 24px; width: 100%; }
.Sidebar .Games .Game, .Sidebar .Games .Game .TopLayer, .Sidebar .Games .Game .ShadowLayer {
  width: 100%; height: 78px;
}
.Sidebar .Games .Game p { font-size: 13px; }
.Sidebar .SocialLinks { margin-bottom: 0; }
.Home > .Winners {
  display: flex;
  position: sticky;
  top: var(--app-header);
  height: calc(100dvh - var(--app-header));
  min-width: 0;
}
.Winners__list { min-height: 0; }
.MobileNav { display: none !important; }
.Home > .Navbar {
  position: sticky;
  top: 0;
  height: var(--app-header);
  min-width: 0;
  padding: 0 24px 0 5px;
  border-bottom: 1px solid #3a2f22;
}
.NavLogo { display: flex; align-items: center; flex: 0 0 210px; }
.NavLogo #nav-logo {
  display: block;
  width: 210px;
  height: 101px;
  object-fit: contain;
}
.NavMain { gap: 20px; min-width: 0; padding: 0; }
.NavTabs { display: flex; margin-left: clamp(12px, 3.1vw, 60px); gap: 24px; flex-shrink: 0; }
.NavTab { font-size: 18px; }
.NavWallet { flex-shrink: 0; }
.NavWallet__deposit { flex-shrink: 0; color: #fff; font-size: 11px; }
.NavWallet__int { white-space: nowrap; }
.Navbar .NavWallet + .NavActions { margin-left: 0; }
.NavActions { flex-shrink: 0; gap: 12px; }
.NavUser__text { display: flex; }
.NavUser__name { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.NavBanner { margin: 0; }
.Home > .JackpotPage {
  padding: 52px var(--app-gutter) !important;
  justify-content: flex-start;
}
.JackpotPage > .Container.Container {
  display: grid;
  grid-template-columns: minmax(0, 1.49fr) minmax(0, 1fr);
  align-items: center !important;
  gap: clamp(20px, 2vw, 40px) !important;
  width: 100%;
  max-width: 1328px;
  min-height: min(825px, calc(100svh - var(--app-header) - 104px));
  margin: auto;
  padding: 32px !important;
  border: 2px solid #3a2f22 !important;
  border-radius: 28px;
  background: linear-gradient(180deg, #16120d 49.5%, #1b1610 100%);
  overflow: clip !important;
}
.JackpotPage > .Container .WheelBG.WheelBG {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0;
  padding: 0 !important;
  gap: 0;
  background: none !important;
  container-type: inline-size;
}
.WheelBG .DemoWheel.DemoWheel {
  width: 82% !important;
  max-width: 600px;
  height: auto !important;
  aspect-ratio: 1;
  margin: 12% auto;
  flex: none;
}
.WheelBG .WheelMeta { inset: auto; width: 100%; margin: 0 0 6px; }
.WheelMeta__timer { font-size: 14px; text-align: center; }
.WheelMeta__fair { max-width: 100%; overflow-wrap: anywhere; }
.WheelBG .WheelCenter__pot { display: flex; align-items: center; justify-content: center; gap: .18em; font-size: clamp(26px, 9cqw, 68px); font-weight: 600; white-space: nowrap; }
.WheelCenter__currency { width: .72em; height: .72em; flex: none; object-fit: contain; }
.WheelBG .WheelCenter__range { font-size: clamp(10px, 2.5cqw, 18px); color: #b5a798; }
.WheelBG .WheelCenter__slots { font-size: clamp(20px, 4.8cqw, 35px); font-weight: 500; }
.WheelBG .WheelCenter__timer { font-size: clamp(16px, 3.5cqw, 26px); }
.WheelMeta__timer,
.WheelBG .WheelCenter__range,
.WheelBG .WheelCenter__slots,
.JackpotPage .EntryTickets { display: none; }
.WheelBG .WheelCenter > * { z-index: 1; }
.WheelBG .WheelAvatar { width: 12%; height: 12%; margin: -6% 0 0 -6%; }
.WheelBG .DemoWheel__pointer {
  top: 14.5%;
  border-left-width: 10px;
  border-right-width: 10px;
  border-top: 0;
  border-bottom: 18px solid #251e16;
  filter: none;
  z-index: 2;
}
.WheelBG .DemoWheel__winner { position: static; min-height: 24px; font-size: 16px; overflow-wrap: anywhere; }
.WheelBG .DemoWheel__winner:empty { display: none; }
.JackpotPage > .Container .Info.Info {
  width: 100%;
  max-width: none !important;
  height: auto !important;
  min-width: 0;
  max-height: none;
  padding: 14px;
  align-self: stretch;
  justify-content: center;
}
.JackpotPage .Info .Header { flex: none; height: auto; min-height: 48px; padding: 6px 4px 16px; justify-content: space-between; gap: 12px; }
.JackpotPage .Info .Header p { font-size: 20px; font-weight: 600; }
.JackpotPage .Info .Header #player-count { margin-left: auto; color: #d0c7bd; font-size: 14px; font-weight: 500; }
.JackpotPage .Info > .WheelMeta__fair { flex: none; width: 100%; margin: 12px 0 0; padding-inline: 4px; color: #9e8c78; font-size: 10px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.JackpotPage .Info .Interaction { flex: 1; min-height: 0; padding: 12px; background: #15110c; border-radius: 10px; gap: 16px; }
.JackpotPage .Info .Entries { padding: 0; gap: 16px; flex: 1; max-height: 560px; min-height: 100px; }
.JackpotPage .Info .Entries .Entry { padding: 12px; flex-shrink: 0; }
.JackpotPage .Entry .Top { gap: 10px; }
.JackpotPage .Entry .Player { min-width: 0; justify-content: flex-start; }
.JackpotPage .Entry .Player > div { min-width: 0; }
.JackpotPage .EntryName { overflow-wrap: anywhere; }
.JackpotPage .EntryChance { flex-shrink: 0; }
.JackpotPage .Entry .Bottom { gap: 8px; }
.JackpotPage .Entry .Bottom .BetInfo { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; }
.JackpotPage .Info .Buttons { flex: none; width: 100%; margin: 0; }
.JackpotPage .Info .Buttons .Bet { width: 100%; min-height: 44px; }
.Home > .Coinflip { padding: 0 var(--app-gutter) !important; overflow: visible; }
.Coinflip .CurrentGames { height: auto; min-height: 0; overflow: visible; padding: 32px 0; }
.Coinflip .Interactive .Creation { gap: 20px; flex-wrap: wrap; }
.Coinflip .Interactive .Creation .GameInteractivity { gap: 12px; flex-wrap: wrap; }
.Coinflip .Interactive .Options { gap: 12px; flex-wrap: wrap; }
.Coinflip .Interactive .Options :is(.SortGames, .GameFilter) { display: flex !important; }
.Coinflip .CurrentGames .Statistics { flex-direction: row !important; }
.CFRow { height: auto; min-height: 103px; padding-block: 16px; }
.CFRow__pill { height: auto; min-height: 71px; padding-block: 10px; }
.CFRow__stake { min-width: 0; overflow-wrap: anywhere; }
.CFRow__action { min-height: 44px; }
:is(.AuthModal, .DepositModal, .CreateModal, .DemoModal, .ProfileModal) {
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
}
:is(.AuthModal__box, .DepositModal__box, .CreateModal__box, .DemoModal__box, .ProfileModal__box) {
  min-height: 0;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.DepositCards { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.CreateModal__totals { flex-wrap: wrap; gap: 8px 24px; }
.ProfileModal__head { align-items: center; }
:is(.ProfileModal__back, .DepositModal__close, .CreateModal__close) { min-width: 44px; min-height: 44px; }
.Home :is(a, button, input):focus-visible, #root [role="dialog"] :is(a, button, input):focus-visible {
  outline: 2px solid #ffdaa2; outline-offset: 3px;
}

@media (max-width: 1599px) {
  :root { --app-header: 88px; --app-gutter: 28px; }
  .NavLogo { flex-basis: 180px; }
  .NavLogo #nav-logo { width: 180px; height: 84px; }
  .NavTabs { margin-left: 16px; gap: 18px; }
  .NavTab { font-size: 16px; }
  .NavUser__text { display: none; }
  .Home > .JackpotPage { padding-block: 32px !important; }
  .JackpotPage > .Container.Container { padding: 24px !important; }
  .JackpotPage .Info .Interaction { padding: 10px; }
  .JackpotPage .Info .Entries { gap: 12px; }
  .JackpotPage .Info .Entries .Entry { padding: 10px; }
  .NavBanner { max-width: 260px; }
}
@media (max-width: 1279px) {
  :root { --app-feed: 0px; --app-sidebar: 80px; --app-gutter: 24px; }
  .Home > .Winners { display: none; }
  .NavLogo { flex-basis: 150px; }
  .NavLogo #nav-logo { width: 150px; height: 76px; }
  .NavMain { gap: 12px; }
  .NavActions { gap: 8px; }
  .NavTabs { margin-left: 12px; gap: 12px; }
  .NavBanner { display: none !important; }
  .NavWithdraw { padding-inline: 14px; }
}
@media (max-width: 900px) {
  :root { --app-header: 76px; --app-sidebar: 0px; --app-gutter: 20px; }
  .Home { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .Home > .Sidebar { display: none !important; }
  .Home > :is(.JackpotPage, .Coinflip, .PageContent, .SupportPage, .payment-layout) { border-left: 0; }
  .Home > .Navbar { padding-inline: 16px; }
  .NavLogo { flex-basis: 130px; }
  .NavLogo #nav-logo { width: 130px; height: 68px; }
  .NavTabs { display: none; }
  .Navbar .NavWallet + .NavActions { margin-left: 0; }
  .MobileNav {
    display: flex !important;
    position: fixed !important;
    inset: auto 0 0;
    z-index: 99;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: #1d1710;
    border-top: 1px solid #3a2f22;
  }
  .MobileNav .Tab { flex: 1; min-width: 0; min-height: 48px; gap: 4px; border-radius: 8px; }
  .MobileNav .Tab p { font-size: 10px; font-weight: 600; }
  .MobileNav .Tab.is-active { background: rgba(165, 107, 20, .1); }
  .Home > .JackpotPage { padding-block: 24px !important; }
  .JackpotPage > .Container.Container { padding: 20px !important; min-height: 0; }
  .JackpotPage .Info .Header p { font-size: 16px; }
  .Notes { position: fixed; top: calc(var(--app-header) + 8px); right: 12px; width: min(360px, calc(100vw - 24px)); }
}
@media (min-width: 901px) {
  .WheelBG .WheelCenter { gap: clamp(10px, 3cqw, 20px); }
  .WheelBG .WheelCenter__timer { margin: 0; width: 46%; padding: clamp(10px, 2.5cqw, 16px) 8px; border: 1px solid rgba(255, 195, 105, .45); border-radius: 16px; background: rgba(19, 15, 11, .75); }
  .WheelBG .WheelCenter__timer { font-size: clamp(24px, 7cqw, 48px); }
  .WheelBG .WheelMeta { position: absolute; inset: 0 0 auto; }
  .WheelBG .DemoWheel.DemoWheel { margin-block: 9.1%; }
  .WheelBG .DemoWheel__winner { position: absolute; inset: auto 0 0; }
  .JackpotPage > .Container .Info.Info { height: min(720px, calc(100svh - var(--app-header) - 128px)) !important; min-height: 420px; align-self: center; }
}
@media (max-width: 900px) {
  .JackpotPage > .Container.Container { grid-template-columns: minmax(0, 1fr); gap: 20px !important; }
  .JackpotPage > .Container .WheelBG.WheelBG { max-width: 480px; margin-inline: auto; }
  .JackpotPage > .Container .Info.Info { padding: 12px; }
  .JackpotPage .Info .Entries { max-height: 360px; }
  .JackpotPage .Info .Buttons { order: -1; }
  .WheelBG .DemoWheel.DemoWheel { margin-block: 7%; }
  .WheelBG .WheelCenter { gap: 6px; }
  .WheelBG .WheelCenter__timer { order: -1; margin: 0; padding: 3px 10px; font-size: clamp(16px, 4.5cqw, 22px); }
  .WheelCenter .Buttons { width: auto; max-width: 56%; pointer-events: auto; margin-top: 2px; }
  .WheelCenter .Bet { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid #ffca7a; border-radius: 10px; background: linear-gradient(135deg, #a86d15, #855610); color: #fff; font: inherit; cursor: pointer; text-decoration: none; box-shadow: 0 4px 16px #ffaf3833; }
  .WheelCenter .Bet p { margin: 0; font-size: clamp(11px, 3cqw, 14px); font-weight: 600; white-space: nowrap; }
  .WheelCenter .Bet:hover { filter: brightness(1.12); }
  .JackpotPage .Info .Header { justify-content: space-between; gap: 12px; min-height: 36px; padding: 2px 4px 12px; }
  .JackpotPage .Info .Header #player-count { margin-left: auto; color: #d0c7bd; font-size: 13px; font-weight: 500; }
  .JackpotPage > .Container.is-drawing .WheelBG.WheelBG { transform: none; }
  .JackpotPage > .Container.is-drawing .Info { transform: none; opacity: 1; pointer-events: auto; }
  .Coinflip .Interactive .Creation { align-items: stretch; }
  .Coinflip .Interactive .Creation .GameInteractivity { width: 100%; }
  .Coinflip .Interactive .Creation .GameInteractivity button { flex: 1; width: auto; min-height: 44px; }
  .Coinflip .Interactive .Options { width: 100%; }
  .Coinflip .Interactive .Options .SortGames { flex: 1; min-width: 160px; }
  .Coinflip .Interactive .Options .PreviousResults { max-width: 100%; flex-wrap: wrap; }
  .CFRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .CFRow__players { grid-column: 1; gap: 10px; }
  .CFRow__bigcoin { grid-column: 2; grid-row: 1; justify-self: end; width: 48px; height: 48px; }
  .CFRow__pill { grid-column: 1 / -1; grid-row: 2; width: auto; order: initial; }
  .CFRow__value { grid-column: 1; grid-row: 3; text-align: left; }
  .CFRow__action { grid-column: 2; grid-row: 3; margin: 0; }
}
@media (max-width: 600px) {
  :root { --app-header: 68px; --app-gutter: 12px; }
  .Home > .Navbar { padding-inline: 12px; }
  .NavLogo { flex-basis: 40px; margin-right: 12px; }
  .NavLogo #nav-logo { content: url('/img/ui/rblxlite-mark.svg?v=warm-1'); width: 40px; height: 40px; }
  .NavWallet { height: 44px; min-width: 0; }
  .NavWallet__amount { padding-inline: 10px; gap: 6px; min-width: 0; }
  .NavWallet__int { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .NavWallet__deposit { width: 58px; }
  .NavActions { gap: 6px; }
  .NavActions :is(.NavWithdraw, .NavUser, #nav-logout) { display: none; }
  .NavIcon { width: 44px; height: 44px; flex-shrink: 0; }
  .NavLogin { height: 44px; }
  .Home > .JackpotPage { padding-block: 16px !important; }
  .JackpotPage > .Container.Container { padding: 16px 12px !important; border-radius: 20px; }
  .JackpotPage .Info .Interaction { padding: 8px; }
  .JackpotPage .Info .Entries .Entry { padding: 10px 8px; }
  .JackpotPage .Info .Entries .Entry .Top .Player img { width: 32px; height: 32px; }
  .JackpotPage .Entry .Bottom .BetInfo p { font-size: 11px; }
  .Coinflip .CurrentGames { padding-block: 20px; }
  .Coinflip .CurrentGames .Statistics { gap: 8px; }
  .Coinflip .CurrentGames .Statistics .Stat { min-width: 0; padding: 12px 6px; }
  .Coinflip .CurrentGames .Statistics .Stat .Amount { font-size: 24px; }
  .Coinflip .CurrentGames .Statistics .Stat .Description { font-size: 10px; }
  .CFRow { padding: 14px; }
  .CFPlayer, .CFPlayer__avatar { width: 46px; height: 46px; }
  :is(.ProfileModal, .DepositModal, .CreateModal, .AuthModal, .DemoModal) { padding-inline: 12px; }
  .ProfileModal__box { border-radius: 16px; }
  .DepositModal__head { padding: 14px; gap: 10px; }
  .DepositModal__body { margin: 0 12px 12px; padding: 14px; }
  .DepositCards { gap: 14px; }
  .CreateModal__bar { padding: 14px; gap: 10px; }
  .CreateModal__body, .CreateModal__totals { padding-inline: 14px; }
  .CreateModal__amount { min-width: 0; }
  .WagerGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .DemoModal__box { padding: 20px; max-width: 100%; }
  #root [role="dialog"] :is(input, select, textarea) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .Home *, #root [role="dialog"] * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
