.pairings-section {
  padding: clamp(48px, 8vw, 100px) max(5vw, calc((100% - 820px) / 2));
  border-block: 1px solid #252719;
}

.pairings-section h2 {
  margin: 0 0 .25em;
  font: 400 clamp(42px, 7vw, 76px)/1 var(--serif);
}

.pairings-section > p { margin: .6rem 0; }
.pairings-section #pairingsStatus:empty { display: none; }

.pairings-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.pairings-controls label { grid-column: 1 / -1; }

.pairings-controls input,
.pairings-controls select,
.pairings-matches button {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: inherit;
  background: #151610;
  border: 1px solid #56594a;
  border-radius: 8px;
  font: inherit;
}

.pairings-button:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #050505;
  background: #d7f23a;
  border: 1px solid #d7f23a;
  border-radius: 8px;
  font: 700 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.pairings-matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.pairings-matches button { text-align: left; cursor: pointer; }
.pairings-matches button:hover { border-color: #d7f23a; }

.pairings-result {
  margin-top: 18px;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid #646e29;
  border-radius: 14px;
  background: #151610;
}

.pairings-result h3 { margin: 0 0 12px; font: 400 36px/1.1 var(--serif); }
.pairings-result h3 + p, .pairings-result a { color: #d7f23a; }
.pairings-result p { margin: 0 0 10px; }

.pairings-roulette {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-block: 28px;
  padding: clamp(22px, 5vw, 50px) clamp(10px, 4vw, 30px) 24px;
  border: 1px solid #363d2b;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 35%, #273121 0%, #10160f 60%, #0b100c 100%);
}

.pairings-wheel-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -35deg, #b8bb7a, #454c31, #858e58, #303725, #b8bb7a);
  box-shadow: 0 18px 42px #0009, 0 0 0 1px #a6ad6d80, inset 0 0 10px #141b11aa;
}

.pairings-wheel-frame::before {
  position: absolute;
  z-index: 4;
  top: -3%;
  left: 50%;
  width: 9%;
  height: 11%;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(125deg, #fbffe0, #d7f23a 54%, #819723);
  content: '';
}

.pairings-wheel-frame::after {
  position: absolute;
  z-index: 2;
  inset: 2%;
  border: 1px dashed #ecebc09a;
  border-radius: 50%;
  pointer-events: none;
  content: '';
}

.pairings-wheel-frame.has-winner::before { background: #edff8c; }
.pairings-wheel-frame.has-winner { box-shadow: 0 18px 42px #0009, 0 0 24px #c8e94835; }

.pairings-wheel {
  position: absolute;
  inset: 4.5%;
  border: 1px solid #151b0e;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle, #11180d88, transparent 53%, #090e0a66),
    var(--wheel-sectors, #263522);
  box-shadow: inset 0 0 21px #0007, 0 0 0 1px #cad49370;
}

.pairings-wheel-hub {
  position: absolute;
  z-index: 3;
  inset: 40.5%;
  display: grid;
  place-items: center;
  border: 1px solid #a8b26a;
  border-radius: 50%;
  color: #e8efbf;
  background: radial-gradient(circle at 35% 20%, #53623b, #202a1b 65%, #11170e);
  box-shadow: 0 0 0 3px #151c12, 0 4px 12px #0009;
  font: italic clamp(15px, 4vw, 30px)/1 var(--serif);
  letter-spacing: -.04em;
}

.pairings-wheel span {
  position: absolute;
  width: 24%;
  padding: .27em .34em;
  border: 1px solid #ebecc041;
  border-radius: 7px;
  color: #fffcee;
  background: #10160ee8;
  box-shadow: 0 2px 5px #0005;
  transform: translate(-50%, -50%) rotate(var(--pairings-label-angle, 0deg));
  text-align: center;
  overflow-wrap: anywhere;
  font: 700 clamp(9px, 2.35vw, 13px)/1.15 var(--sans);
}

.pairings-wheel span.is-winner {
  z-index: 1;
  border-color: #efffa4;
  color: #17200d;
  background: #ddf564;
  box-shadow: 0 0 16px #ddf56477;
}

.pairings-roulette .pairings-button {
  min-width: min(100%, 205px);
  border-radius: 999px;
  background: linear-gradient(180deg, #e7f975, #c5df39);
  box-shadow: 0 4px 0 #65752a, 0 8px 18px #0007;
}
.pairings-roulette .pairings-button:focus-visible { outline: 2px solid #fff9d4; outline-offset: 4px; }
.pairings-button:disabled { opacity: .65; cursor: wait; }
