:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f5ebdc;
  background: #09050f;
  --gold: #efc16a;
  --green: #00965b;
  --orange: #f4a014;
  --red: #ce2144;
  --stop: #9ca9bb;
}
* {
  box-sizing: border-box;
}
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 25% 50%, #32113f66, transparent 53%),
    radial-gradient(ellipse at 85% 15%, #5e36141c, transparent 46%),
    linear-gradient(135deg, #0e0714, #07060c 70%);
}
#decorations {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: -1;
}
#decorations img {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #fff0b7;
  outline-offset: 5px;
}
header {
  height: 82px;
  margin: 0 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d6b66c29;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #f9df9a;
  text-decoration: none;
}
.brand-icon {
  font-size: 31px;
  color: var(--gold);
}
.age {
  font:
    11px Arial,
    sans-serif;
  border: 1px solid #b28a455e;
  border-radius: 4px;
  padding: 4px;
  letter-spacing: 0;
}
.edition {
  text-align: center;
  font-size: 13px;
  color: #e3c78e;
  letter-spacing: 4px;
}
.edition span {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #8e7e94;
}
.fullscreen {
  border: 1px solid #cda85a4f;
  background: #140e1c;
  border-radius: 6px;
  padding: 10px 15px;
  color: #e6d4ac;
  font-size: 14px;
}
main {
  height: calc(100svh - 127px);
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(365px, 0.8fr);
  gap: 3vw;
  padding: 19px 4vw 12px 2.5vw;
}
.wheel-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b2a4a9;
}
.wheel-panel > .eyebrow {
  text-align: center;
  margin-bottom: 8px;
}
.wheel-space {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}
.wheel-frame {
  position: relative;
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  aspect-ratio: 1;
  filter: drop-shadow(0 8px 28px #000c);
}
#wheel {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#rotor {
  will-change: transform;
}
.sector {
  stroke: #eab44b;
  stroke-width: 0.9;
  pointer-events: fill;
}
.sector-label {
  fill: #fff8df;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.35px;
  paint-order: stroke fill;
  stroke: #260912;
  stroke-width: 1.1px;
  pointer-events: none;
}
.sector-label.gold-label {
  fill: #392000;
  stroke: #fff2b0;
  stroke-width: 0.5px;
}
.led {
  pointer-events: none;
  stroke: #ffdc86;
  stroke-width: 0.6;
}
.hub {
  position: absolute;
  inset: 20.6%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 32%, #49103e 0, #1b0923 37%, #09040e 72%);
  box-shadow:
    inset 0 0 35px #050108,
    0 0 26px #faaf2c35;
  isolation: isolate;
}
.hub:before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from 12deg at 50% 38%,
    #ee57f515 0deg,
    transparent 3deg 16deg
  );
  mask-image: radial-gradient(ellipse, #0006, transparent 65%);
  z-index: -1;
}
.hub img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wheel-rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.outer-rim {
  filter: drop-shadow(0 0 6px #ffae274d);
}
.inner-rim {
  filter: drop-shadow(0 0 5px #ffb73366);
}
.pointer {
  position: absolute;
  right: -0.3%;
  top: 50%;
  transform: translateY(-50%);
  width: 10.3%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(1px 3px 4px #0009);
}
body[data-phase='RESULT'] #rotor > g:not(.selected-field) {
  opacity: 0.69;
}
.selected-field .sector {
  stroke: #fff8d1;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.selected-field .sector-label {
  fill: #fff;
  text-shadow: 0 1px 3px #000;
}
.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 6px;
  font-size: 11px;
  color: #b4a4ad;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.green {
  background: var(--green);
}
.orange {
  background: var(--orange);
}
.red {
  background: var(--red);
}
.gold {
  background: var(--gold);
}
.stop {
  background: var(--stop);
}
.control-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.live-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #d7b268;
  border: 1px solid #a47e363d;
  border-radius: 4px;
  padding: 6px 8px;
  white-space: nowrap;
}
.card {
  border: 1px solid #ac854b80;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 90% 0%, #65334825, transparent 65%),
    linear-gradient(140deg, #211427, #100d17);
  box-shadow:
    inset 0 1px 0 #ffe5a90f,
    0 14px 45px #0005;
  display: flex;
  flex-direction: column;
  min-height: 265px;
  flex: 0 1 390px;
  overflow: hidden;
}
.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 25px;
  color: #dfc58f;
  font-size: 11px;
  letter-spacing: 1.4px;
  flex-shrink: 0;
}
.card-top {
  border-bottom: 1px solid #d9b66a25;
  padding: 15px 0;
  min-height: 54px;
}
.card-star {
  font-size: 23px;
}
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-height: 0;
  padding: 18px 25px;
}
.card-icon {
  color: #dfb85e;
  font-size: 30px;
  margin-bottom: 10px;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(33px, 3.2vw, 61px);
  line-height: 1.06;
  margin: 0;
  color: #faefda;
  text-wrap: balance;
}
#card-text {
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.5;
  color: #c0b2c0;
  max-width: 34ch;
  margin: 17px 0 0;
  text-wrap: pretty;
}
#example-notice {
  font-size: 10px;
  letter-spacing: 1px;
  color: #bd9b66;
  margin: 12px 0 0;
}
#example-notice[hidden] {
  display: none;
}
.card-bottom {
  border-top: 1px solid #d9b66a25;
  padding: 12px 0;
  font-size: 10px;
  letter-spacing: 0.7px;
}
#card-note {
  font-size: 11px;
  letter-spacing: 0.3px;
}
.card[data-kind='gold'],
.card[data-kind='bigGold'] {
  border-color: #efca75;
  background: radial-gradient(ellipse at 50% 10%, #83501b44, transparent 85%), #20141a;
}
.card[data-kind='stop'] {
  border-color: #a0aabc;
}
#card[data-color] #result-color {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 5px 7px;
}
#card[data-color='green'] #result-color {
  color: #76e1a9;
}
#card[data-color='orange'] #result-color {
  color: #ffba61;
}
#card[data-color='red'] #result-color {
  color: #ff839d;
}
#card[data-color='gold'] #result-color {
  color: #ffe0a0;
}
#card[data-color='stop'] #result-color {
  color: #bfcde2;
}
.color-config {
  margin-top: 17px;
}
.color-config-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #b7a4af;
}
#select-all {
  background: none;
  border: 0;
  border-bottom: 1px solid #b2955966;
  color: #d8bd80;
  font-size: 11px;
  padding: 2px 0;
}
#select-all:disabled {
  opacity: 0.5;
  cursor: default;
}
#color-options {
  display: flex;
  padding: 0;
  border: 0;
  margin: 0;
  gap: 9px;
  min-width: 0;
}
.color-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1;
  padding: 10px 8px;
  border: 1px solid #58414f;
  border-radius: 7px;
  background: #160f1b;
  cursor: pointer;
}
.color-choice input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--choice);
}
.color-choice span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.color-choice b {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--choice);
}
.color-choice small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #b7a4af;
}
.green-choice {
  --choice: #4dd796;
}
.orange-choice {
  --choice: #fcb54f;
}
.red-choice {
  --choice: #f77291;
}
.color-choice:has(input:checked) {
  border-color: var(--choice);
  background: color-mix(in srgb, var(--choice) 9%, #160f1b);
}
#color-options:disabled .color-choice {
  cursor: default;
  opacity: 0.6;
}
#config-message {
  font-size: 11px;
  color: #a998aa;
  line-height: 1.4;
  min-height: 16px;
  margin: 9px 0 0;
}
.spin {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(110deg, #b27421, #f7d58d 35%, #ffe9b3 50%, #d8a54b 78%, #b57b29);
  color: #2b1809;
  border: 1px solid #ffe5aa;
  box-shadow:
    inset 0 1px 0 #fff5cd,
    0 5px 22px #b97c231f;
  border-radius: 8px;
  min-height: 69px;
  flex-shrink: 0;
  margin-top: 15px;
  font-size: 23px;
  letter-spacing: 4px;
  font-weight: 800;
  order: 0;
}
.spin:hover {
  filter: brightness(1.08);
}
#button-icon {
  position: absolute;
  right: 23px;
  font-size: 28px;
  font-weight: 400;
}
.spin[data-phase='SPINNING'] {
  background: linear-gradient(110deg, #8e1530, #d74159 45%, #a62140);
  border-color: #f3758b;
  color: #fff6e3;
}
.spin:disabled {
  cursor: default;
  filter: none;
  opacity: 0.6;
}
.spin[data-phase='BRAKING'] {
  background: linear-gradient(110deg, #5b3d21, #936e3b);
  border-color: #c6a065;
  color: #f4dfb4;
  opacity: 0.8;
  cursor: wait;
}
.status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 13px;
  color: #e1d1b3;
  line-height: 1.4;
  text-align: center;
}
#status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7b468;
  flex-shrink: 0;
}
.hint {
  text-align: center;
  font-size: 11px;
  color: #918393;
  line-height: 1.5;
  margin: 8px 0 15px;
}
.rules {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  border-top: 1px solid #b4925725;
  padding-top: 12px;
  color: #8d7c8c;
  font-size: 9px;
  letter-spacing: 1px;
}
footer {
  height: 45px;
  margin: 0 3vw;
  border-top: 1px solid #c69d5620;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #756879;
}
footer b {
  color: #bda675;
  margin-left: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 2000px) {
  header {
    height: 100px;
  }
  .brand {
    font-size: 34px;
  }
  .brand-icon {
    font-size: 42px;
  }
  .edition {
    font-size: 17px;
  }
  .edition span {
    font-size: 12px;
  }
  .fullscreen {
    font-size: 18px;
    padding: 14px 21px;
  }
  main {
    height: calc(100svh - 155px);
    gap: 3vw;
    padding-top: 25px;
  }
  footer {
    height: 55px;
    font-size: 12px;
  }
  .card {
    flex-basis: 620px;
  }
  .card-top {
    font-size: 17px;
    min-height: 76px;
  }
  .card-body {
    padding: 30px;
  }
  .card-icon {
    font-size: 45px;
  }
  .card-bottom {
    font-size: 14px;
    padding: 20px 0;
  }
  #card-note {
    font-size: 15px;
  }
  .eyebrow {
    font-size: 14px;
  }
  .legend {
    font-size: 15px;
    gap: 20px;
  }
  .live-label {
    font-size: 12px;
  }
  .spin {
    min-height: 95px;
    font-size: 31px;
    margin-top: 23px;
  }
  .status {
    font-size: 18px;
  }
  .hint,
  #config-message {
    font-size: 15px;
  }
  .color-config-heading {
    font-size: 14px;
  }
  .color-config {
    margin-top: 25px;
  }
  #select-all {
    font-size: 15px;
  }
  .color-choice {
    padding: 16px;
  }
  .color-choice b {
    font-size: 17px;
  }
  .color-choice small {
    font-size: 12px;
  }
  .color-choice input {
    width: 20px;
    height: 20px;
  }
  .rules {
    font-size: 12px;
  }
  .panel-heading {
    margin-bottom: 20px;
  }
  #card[data-color] #result-color {
    font-size: 16px;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  header {
    height: 66px;
  }
  main {
    height: calc(100svh - 102px);
    padding-top: 12px;
    padding-bottom: 7px;
  }
  footer {
    height: 36px;
  }
  .card {
    min-height: 215px;
    flex-basis: 300px;
  }
  .card-icon {
    display: none;
  }
  .card-body {
    padding: 12px 19px;
  }
  h1 {
    font-size: 32px;
  }
  #card-text {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
  }
  .card-top {
    padding: 9px 0;
    min-height: 42px;
  }
  .card-bottom {
    padding: 9px 0;
  }
  .color-config {
    margin-top: 11px;
  }
  .color-choice {
    padding: 8px;
  }
  .color-config-heading {
    margin-bottom: 7px;
  }
  .spin {
    min-height: 60px;
    margin-top: 11px;
  }
  .status {
    margin-top: 11px;
  }
  .hint {
    margin-bottom: 10px;
  }
  .rules {
    padding-top: 9px;
  }
  .panel-heading {
    margin-bottom: 10px;
  }
  #example-notice {
    font-size: 9px;
    margin-top: 7px;
  }
}
@media (max-width: 1050px) and (min-width: 701px) {
  main {
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, 1fr);
    gap: 2vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .edition {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
  }
  .card-top,
  .card-bottom {
    margin-left: 17px;
    margin-right: 17px;
  }
  .color-choice {
    gap: 6px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .color-choice b {
    font-size: 10px;
  }
  .rules {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .legend {
    font-size: 9px;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  header {
    height: 70px;
  }
  .brand {
    font-size: 21px;
    letter-spacing: 2px;
  }
  .brand-icon {
    font-size: 26px;
  }
  .edition {
    display: none;
  }
  .fullscreen {
    padding: 8px 10px;
    font-size: 12px;
  }
  main {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 25px;
    padding: 19px 5vw;
  }
  .wheel-space {
    flex: auto;
    height: 88vw;
  }
  .wheel-frame {
    width: 88vw;
    height: 88vw;
  }
  .wheel-panel > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .legend {
    font-size: 9px;
    gap: 10px;
  }
  .card {
    min-height: 335px;
    flex-basis: auto;
  }
  .card-body {
    min-height: 210px;
  }
  .card-top,
  .card-bottom {
    margin-left: 20px;
    margin-right: 20px;
  }
  h1 {
    font-size: 37px;
  }
  #card-text {
    font-size: 17px;
  }
  .color-choice {
    padding: 11px 7px;
  }
  .color-choice b {
    font-size: 11px;
  }
  .spin {
    min-height: 70px;
  }
  .panel-heading > .eyebrow {
    font-size: 9px;
  }
  .rules {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  footer {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .card-bottom {
    font-size: 9px;
  }
  #card-note {
    font-size: 10px;
  }
  .card-icon {
    font-size: 29px;
  }
  .live-label {
    font-size: 8px;
  }
  #card[data-color] #result-color {
    font-size: 10px;
  }
  .status {
    font-size: 12px;
  }
  .legend span:nth-child(n + 4) {
    display: none;
  }
}
[hidden] {
  display: none !important;
}
.brand-icon {
  width: 23px;
  height: 35px;
  object-fit: contain;
}
.wheel-frame {
  filter: none;
  contain: layout style;
}
#wheel,
#wheel-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
}
#wheel-labels {
  pointer-events: none;
}
.hub,
.wheel-rim {
  transform: translateZ(0);
}
.selected-label {
  fill: #fff;
}
.hub,
.wheel-rim {
  transform: none;
}
.outer-rim,
.inner-rim {
  filter: none;
}
.hub:before {
  mask-image: none;
  opacity: 0.18;
}
@media (min-width: 701px) and (max-height: 650px) {
  main {
    min-height: 620px;
  }
}
.panel-heading {
  order: 0;
}
.color-config {
  order: 1;
  margin-top: 0;
  margin-bottom: 15px;
}
.card {
  order: 2;
  flex-basis: 430px;
}
.spin {
  order: 3;
}
.status {
  order: 4;
}
.hint {
  order: 5;
}
.rules {
  order: 6;
}
@media (min-width: 2000px) {
  .card {
    flex-basis: 620px;
  }
  .color-config {
    margin-bottom: 22px;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  .card {
    flex-basis: 300px;
  }
  .color-config {
    margin-bottom: 10px;
  }
}
@media (max-width: 700px) {
  .card {
    flex-basis: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-frame,
  .outer-rim,
  .inner-rim,
  .pointer {
    filter: none;
  }
  .hub:before {
    display: none;
  }
}
