main {
  position: relative;
  width: min(1530px, 96vw);
  padding-right: 290px;
  min-height: 0;
}

/* Fixed-size panel in the existing top-right sidebar slot. Only its list scrolls. */
.double-rankings {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 268px;
  height: clamp(310px, calc(100vh - 120px), 520px);
  min-height: 0;
  padding: 15px 13px 12px;
  border: 1px solid #ffffff25;
  border-radius: 16px;
  background: linear-gradient(160deg, #1c2130, #10131b 42%, #11141c);
  box-shadow: 0 18px 40px #0006, inset 0 1px #ffffff12;
  overflow: hidden;
  color: #eef2fb;
}
.double-sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.double-sidebar-heading small {
  color: #f6bd67;
  font: 800 9px/1.2 system-ui, sans-serif;
  letter-spacing: .13em;
}
.double-rankings h2 {
  margin: 5px 0 0;
  font: 800 13px/1.25 system-ui, sans-serif;
  letter-spacing: .035em;
}
.double-round-label {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #8c9bac;
  font: 700 10px/1.4 system-ui, sans-serif;
}
.double-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.double-sidebar-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 9px 8px;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  background: #ffffff07;
}
.double-sidebar-stats small {
  color: #9ba6ba;
  font: 700 8px/1.15 system-ui, sans-serif;
  letter-spacing: .04em;
}
.double-sidebar-stats b {
  color: #fff;
  font: 900 15px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.double-sidebar-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #d5a54245;
  border-radius: 10px;
  background: linear-gradient(115deg, #f9bf3720, #fff0 95%);
}
.double-sidebar-total > span {
  flex: 0 0 100%;
  color: #d3bc8d;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: .08em;
}
.double-sidebar-total strong {
  color: #ffdc7d;
  font: 900 22px/1.05 system-ui, sans-serif;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.double-sidebar-total > small {
  color: #d9bf89;
  font: 700 8px/1 system-ui, sans-serif;
  letter-spacing: .06em;
}
.double-participants-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 3px;
  border-bottom: 1px solid #ffffff1b;
  color: #95a3b5;
  font: 800 9px/1.3 system-ui, sans-serif;
  letter-spacing: .13em;
}
.double-participants {
  flex: 1 1 auto;
  min-height: 0;
  margin: -5px -5px 0 0;
  padding: 0 5px 0 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #76839675 transparent;
}
.double-participant {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid #ffffff12;
}
.double-participant-position {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #ffffff0c;
  color: #a5aec0;
  font: 800 10px system-ui, sans-serif;
}
.double-participant:nth-child(1) .double-participant-position {
  color: #241b08;
  background: #ffda76;
}
.double-participant-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.double-participant-identity b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font: 800 11px/1.1 system-ui, sans-serif;
}
.double-participant-identity small {
  color: #8795a9;
  font: 600 9px/1 system-ui, sans-serif;
}
.double-participant > strong {
  color: #82e9b9;
  font: 900 11px/1.1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.double-participants-empty {
  padding: 17px 6px;
  color: #95a2b5;
  text-align: center;
  font: 600 11px/1.5 system-ui, sans-serif;
}
.community {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.community article {
  background: #11141c;
  border: 1px solid #ffffff18;
  border-top: 3px solid #3d4555;
  border-radius: 12px;
  padding: 16px;
  min-height: 185px;
}
.community .red { border-top-color: #ed3150; }
.community .white { border-top-color: #fff; }
.community h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 15px;
}
.community small { color: #9aa9ba; font-size: 11px; }
.empty { color: #78869c; font-size: 12px; padding: 15px 0; }
.double-rules { margin: 22px 0; color: #9ba8bb; font-size: 12px; }
.double-rules summary { cursor: pointer; }
.wheel { width: 100%; transition: none; }
.wheel-shell { isolation: isolate; }
.hero { position: relative; padding-bottom: 17px; }
.hero:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 4px;
  width: var(--round-progress, 100%);
  background: linear-gradient(90deg, #ed3150, #ff6885);
  transition: width .06s linear;
}
.timer strong { font-size: 3.5rem; }
.bet-layout { grid-template-columns: 1fr 230px; }
.info { grid-template-columns: 1fr; }
.colors button:disabled { opacity: .45; cursor: not-allowed; }
.colors button:disabled:hover { transform: none; }
.fair code { max-width: 230px; margin-left: auto; }
@media (max-width: 1100px) {
  main { padding-right: 0; }
  .double-rankings {
    position: static;
    width: 100%;
    height: clamp(280px, 50vh, 420px);
    margin-top: 20px;
  }
}
@media (max-width: 650px) {
  .community { grid-template-columns: 1fr; }
  .community article { min-height: 100px; }
  .bet-layout { grid-template-columns: 1fr; }
  .timer strong { font-size: 3rem; }
  .double-rankings { height: clamp(270px, 50vh, 380px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero:after { transition: none; }
}
