html[data-theme] .modern-site .cs-roulette--picker {
  --roll-inset: clamp(15px, 2.5vw, 34px);
  --roll-card-size: clamp(238px, 20vw, 288px);
  --roll-line: color-mix(in srgb, var(--ui-accent) 37%, var(--ui-line));
  --roll-stage: color-mix(in srgb, var(--ui-soft) 92%, var(--ui-ink));
  container: build-roulette / inline-size;
  margin-block: 0 var(--surface-gap, 26px);
}
.cs-roulette--picker :is(button, a, summary) { -webkit-tap-highlight-color: transparent; }
html[data-theme] .cs-roulette--picker > .cs-roulette__head {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 0;
  padding: clamp(17px, 2.2vw, 29px) var(--roll-inset);
  border-radius: var(--ui-radius) var(--ui-radius) 0 0;
}
.cs-roulette--picker .cs-roulette__heading { align-items: center; flex: 1 1 auto; gap: clamp(11px, 1.3vw, 18px); }
.cs-roulette--picker .cs-roulette__heading-copy { min-width: 0; }
html[data-theme] .cs-roulette--picker .cs-roulette__heading h2 {
  margin: 0 0 4px;
  font-size: clamp(25px, 2.7vw, 40px) !important;
  line-height: 1.04 !important;
}
html[data-theme] .cs-roulette--picker .cs-roulette__brand {
  width: clamp(43px, 4vw, 57px);
  height: clamp(43px, 4vw, 57px);
  border: 1px solid var(--roll-line);
  border-radius: 14px;
  color: var(--ui-accent);
  background: var(--ui-tint);
}
.cs-roulette--picker .cs-roulette__brand svg { width: 64%; height: 64%; }
.cs-roulette--picker .cs-roulette__brand svg > path { stroke: currentColor; }
html[data-theme] .cs-roulette--picker .cs-roulette__heading .cs-roulette__pool {
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ui-muted) !important;
  background: none !important;
  font-size: 12px;
  line-height: 1.4;
}
html[data-theme] .cs-roulette--picker .cs-roulette__heading .cs-roulette__pool b {
  color: var(--ui-ink) !important;
  background: transparent !important;
  font-variant-numeric: tabular-nums;
}
.cs-roulette--picker .cs-roulette__filters {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-soft);
}
.cs-roulette--picker .cs-roulette__filters button {
  min-height: 34px;
  padding: 6px clamp(10px, 1.3vw, 18px);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.cs-roulette--picker .cs-roulette__filters button[aria-pressed="true"] {
  border-color: var(--roll-line);
  background: var(--ui-tint);
  color: var(--ui-accent);
}
.cs-roulette--picker .cs-roulette__filters button:not(:disabled):hover { color: var(--ui-accent); }
.cs-roulette--picker .cs-roulette__filters button:disabled { opacity: .55; cursor: default; }

/* The ruler and the two centred markers stay fixed while the strip moves. */
html[data-theme] .cs-roulette--picker .cs-roulette__stage {
  position: relative;
  min-height: 0;
  padding: 18px 0;
  border-block: 1px solid var(--ui-line);
  background-color: var(--roll-stage);
  background-image: repeating-linear-gradient(90deg, var(--ui-line) 0 1px, transparent 1px 12px),
                    repeating-linear-gradient(90deg, var(--ui-line) 0 1px, transparent 1px 12px);
  background-size: 100% 5px;
  background-position: center top, center bottom;
  background-repeat: no-repeat;
}
html[data-theme] .cs-roulette--picker[data-roulette-state="loading"] .cs-roulette__stage,
html[data-theme] .cs-roulette--picker[data-roulette-state="error"] .cs-roulette__stage { min-height: 250px; }
html[data-theme] .cs-roulette--picker .cs-roulette__stage::before {
  width: clamp(8px, 1.5vw, 20px);
  background: linear-gradient(90deg, var(--roll-stage), transparent);
}
html[data-theme] .cs-roulette--picker .cs-roulette__stage::after {
  width: clamp(8px, 1.5vw, 20px);
  background: linear-gradient(270deg, var(--roll-stage), transparent);
}
.cs-roulette--picker .cs-roulette__viewport { padding-block: 4px; }
.cs-roulette--picker .cs-roulette__track { gap: clamp(9px, 1.1vw, 16px); }
.cs-roulette--picker .cs-roulette__pointer { width: 0; }
.cs-roulette--picker .cs-roulette__pointer::before,
.cs-roulette--picker .cs-roulette__pointer::after {
  width: 28px;
  height: 17px;
  border: 0;
  background: var(--ui-action);
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 15%));
}
.cs-roulette--picker .cs-roulette__pointer::before { top: -1px; clip-path: polygon(0 0, 100% 0, 100% 26%, 50% 100%, 0 26%); }
.cs-roulette--picker .cs-roulette__pointer::after { bottom: -1px; clip-path: polygon(50% 0, 100% 74%, 100% 100%, 0 100%, 0 74%); }
.cs-roulette--picker .cs-roulette__track > .cs-roulette-card {
  flex: 0 0 var(--roll-card-size);
  width: var(--roll-card-size);
}
html[data-theme] .cs-roulette--picker .cs-roulette-card {
  border: 1px solid var(--ui-line) !important;
  border-radius: 13px !important;
  box-shadow: 0 3px 9px -6px rgb(10 25 26 / 32%) !important;
}
html[data-theme] .cs-roulette--picker .cs-roulette-card.is-selected {
  border-color: var(--ui-accent) !important;
  box-shadow: 0 0 0 2px var(--ui-action), 0 3px 16px -8px var(--ui-accent) !important;
}
.cs-roulette--picker .cs-roulette-card__image {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, var(--roll-stage), var(--ui-tint));
}
.cs-roulette--picker .cs-roulette-card__image::before { content: none; }
.cs-roulette--picker .cs-roulette-card__game {
  inset: auto auto 9px 10px;
  padding: 4px 8px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 5px;
  color: white;
  background: rgb(21 32 36 / 90%);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 650;
}
.cs-roulette--picker .cs-roulette-card__body { padding: 13px 14px 14px; }
html[data-theme] .cs-roulette--picker .cs-roulette-card__title {
  min-height: 2.5em;
  margin: 0 0 8px !important;
  font-size: clamp(15px, 1.15vw, 18px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  overflow-wrap: anywhere;
}
.cs-roulette--picker .cs-roulette-card__stats { gap: 5px 13px; margin-bottom: 12px; }
html[data-theme] .cs-roulette--picker .cs-roulette-card__stats :is(dt, dd) { color: var(--ui-muted); font-size: 11px; }
.cs-roulette--picker .cs-roulette-card__stats .cs-roulette-icon { width: 13px; height: 13px; }
.cs-roulette--picker .cs-roulette-card__actions { gap: 5px; margin-block: auto 9px; }
.cs-roulette--picker :is(.cs-roulette-card__action, .cs-roulette-share > summary) { min-height: 30px; font-size: 11px; }
.cs-roulette--picker .cs-roulette-card__links > a { min-height: 36px; font-size: 12px; font-weight: 600; }
.cs-roulette--picker .cs-roulette-card__links > a:only-child { grid-column: 1 / -1; }
.cs-roulette--picker .cs-roulette-card__links .cs-roulette-icon { width: 14px; height: 14px; }
.cs-roulette--picker .cs-roulette-share__panel :is(a, button) { font-size: 12px; }
.cs-roulette--picker .cs-roulette__loading { color: var(--ui-muted); font-size: 14px; }

html[data-theme] .cs-roulette--picker > .cs-roulette__panel {
  padding: clamp(15px, 2vw, 24px) var(--roll-inset) clamp(12px, 1.7vw, 20px);
  border-radius: 0 0 var(--ui-radius) var(--ui-radius);
}
.cs-roulette--picker .cs-roulette__bottom { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.cs-roulette--picker .cs-roulette__controls { flex: 1 1 auto; gap: 6px; }
.cs-roulette--picker :is(.cs-roulette__button, .cs-roulette__history-button) { min-height: 40px; padding: 8px 12px; font-size: 12px; }
.cs-roulette--picker .cs-roulette__controls > .cs-roulette__button--primary { min-width: 126px; min-height: 43px; font-size: 14px; }
.cs-roulette--picker .cs-roulette__button--primary svg { width: 17px; height: 17px; }
.cs-roulette--picker .cs-roulette__history-button { margin: 0; }
html[data-theme] .cs-roulette--picker .cs-roulette__panel > .cs-roulette__status {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 0;
  margin: 11px 0 0;
  padding: 0;
  border: 0;
  color: var(--ui-muted) !important;
  background: none !important;
  font-size: 12px;
  line-height: 1.5;
}
.cs-roulette--picker .cs-roulette__status::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  transform: translateY(-1px);
  border-radius: 100%;
  background: var(--ui-muted);
}
.cs-roulette--picker:is([data-roulette-state="spinning"], [data-roulette-state="running"]) .cs-roulette__status::before { background: var(--ui-accent); }
.cs-roulette--picker .cs-roulette-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid var(--roll-line);
  border-inline-start: 4px solid var(--ui-action);
  border-radius: 12px;
  background: linear-gradient(100deg, var(--ui-tint), var(--ui-surface) 85%);
}
.cs-roulette-result__mark { display: grid; flex: none; place-items: center; width: 35px; height: 35px; color: var(--ui-accent); }
.cs-roulette-result__mark svg { width: 28px; height: 28px; }
.cs-roulette-result__body { flex: 1 1 180px; min-width: 0; }
.cs-roulette-result__label { display: block; margin-bottom: 3px; color: var(--ui-accent); font-size: 12px; font-weight: 650; }
html[data-theme] .cs-roulette--picker .cs-roulette-result__title {
  color: var(--ui-ink) !important;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.24;
  font-weight: 720;
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cs-roulette--picker .cs-roulette-result__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-roulette-result__actions { display: flex; flex-wrap: wrap; gap: 5px; }
html[data-theme] .cs-roulette--picker .cs-roulette-result .cs-roulette-result__download {
  color: var(--ui-on-action) !important;
  border-color: var(--ui-action);
  background: var(--ui-action) !important;
}
.cs-roulette--picker .cs-roulette-result__save { width: 40px; padding: 0; }
.cs-roulette--picker .cs-roulette__options { margin: 12px 0 0; padding: 5px 0 0; border: 0; }
.cs-roulette--picker .cs-roulette__options summary {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 36px;
  padding: 4px 2px;
  list-style: none;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cs-roulette--picker .cs-roulette__options summary::-webkit-details-marker { display: none; }
.cs-roulette--picker .cs-roulette__options summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.cs-roulette--picker .cs-roulette__options[open] summary::after { transform: translateY(2px) rotate(225deg); }
.cs-roulette--picker .cs-roulette__options summary svg { width: 16px; height: 16px; }
.cs-roulette--picker .cs-roulette__settings { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-start; gap: 10px 22px; margin: 6px 0 0; }
.cs-roulette--picker .cs-roulette__speeds { flex: 0 1 auto; flex-wrap: wrap; gap: 4px; }
.cs-roulette--picker .cs-roulette__speeds > span,
.cs-roulette--picker .cs-roulette__volume > span { width: auto; margin: 0 3px 0 0; color: var(--ui-muted); font-size: 11px; text-transform: none; letter-spacing: normal; }
.cs-roulette--picker .cs-roulette__speeds > button { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.cs-roulette--picker .cs-roulette__audio,.cs-roulette--picker .cs-roulette__volume { display: flex; align-items: center; gap: 7px; margin: 0; }
.cs-roulette--picker .cs-roulette__sound { width: 37px; min-height: 36px; padding: 0; }
.cs-roulette--picker .cs-roulette__volume input { width: 90px; accent-color: var(--ui-accent); }
.cs-roulette-recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ui-line); }
.cs-roulette-recent__label { color: var(--ui-muted); font-size: 12px; }
.cs-roulette-recent__list { display: flex; flex: 1 1 300px; flex-wrap: wrap; gap: 5px 14px; min-width: 0; }
.cs-roulette--picker .cs-roulette-recent__link { max-width: min(100%, 32ch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-accent); font-size: 12px; line-height: 1.65; text-decoration: underline; text-underline-offset: 3px; }
.cs-roulette-history .cs-roulette-history__note, .cs-roulette-history .cs-roulette-history__footer { font-size: 13px; }
.cs-roulette--picker .cs-roulette-history__date { font-size: 11px; }
html[data-theme] .cs-roulette--picker :is(a, button, summary, input):focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 2px; }

@container build-roulette (max-width: 650px) {
  .cs-roulette--picker .cs-roulette__track > .cs-roulette-card { flex-basis: clamp(208px, 78cqi, 264px); width: clamp(208px, 78cqi, 264px); }
  .cs-roulette--picker .cs-roulette__heading { flex-basis: 100%; }
  .cs-roulette--picker .cs-roulette__filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
  }
  .cs-roulette--picker .cs-roulette__filters button { min-width: 0; min-height: 42px; padding-inline: 4px; }
  .cs-roulette--picker .cs-roulette__history-button { margin-inline-start: auto; }
  .cs-roulette--picker .cs-roulette__controls > .cs-roulette__button--primary { min-width: 100px; }
  .cs-roulette--picker .cs-roulette-result__mark { width: 26px; }
  .cs-roulette--picker .cs-roulette-result__actions { flex: 1 1 auto; }
  .cs-roulette--picker .cs-roulette-result__actions a { flex: 1 1 auto; }
}
@container build-roulette (max-width: 560px) {
  .cs-roulette--picker .cs-roulette__filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container build-roulette (max-width: 390px) {
  .cs-roulette--picker .cs-roulette__controls { flex-basis: 100%; }
  .cs-roulette--picker .cs-roulette__controls > button { flex: 1 1 auto; padding-inline: 7px; }
  .cs-roulette--picker .cs-roulette__history-button { margin: 0; min-height: 36px; }
  .cs-roulette--picker .cs-roulette__speeds > span { width: 100%; }
}
@media (pointer: coarse) {
  .cs-roulette--picker .cs-roulette__filters button, .cs-roulette--picker :is(.cs-roulette__button, .cs-roulette__history-button, .cs-roulette__options summary) { min-height: 42px; }
  .cs-roulette--picker :is(.cs-roulette-card__action, .cs-roulette-share > summary, .cs-roulette-card__links > a, .cs-roulette__speeds > button) { min-height: 36px; }
}
