.higher-lower-scene {
  position: absolute;
  left: 54px;
  top: 280px;
  width: 972px;
  height: 778px;
}

.hl-meta-row {
  position: absolute;
  left: 0;
  top: 0;
  width: 972px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 24px;
  border: 1px solid rgba(39, 230, 255, .28);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(39, 230, 255, .09), rgba(101, 92, 255, .09));
  overflow: hidden;
}

.hl-meta-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.hl-meta-copy strong {
  color: var(--color-cyan);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: .085em;
}

.hl-meta-copy span {
  color: var(--color-muted);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .065em;
}

.hl-phase-chip {
  min-width: 178px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(56, 236, 146, .38);
  border-radius: 999px;
  color: var(--color-green);
  background: rgba(56, 236, 146, .08);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .06em;
  white-space: nowrap;
}

.hl-phase-chip.warning {
  color: var(--color-yellow);
  border-color: rgba(255, 228, 95, .48);
  background: rgba(255, 228, 95, .08);
}

.hl-phase-chip.final,
.hl-phase-chip.locking {
  color: var(--color-orange);
  border-color: rgba(255, 155, 66, .54);
  background: rgba(255, 155, 66, .09);
}

.hl-phase-chip.reveal,
.hl-phase-chip.complete {
  color: var(--color-gold);
  border-color: rgba(255, 212, 91, .52);
  background: rgba(255, 212, 91, .09);
}

.hl-comparison-stage {
  position: absolute;
  left: 0;
  top: 66px;
  width: 972px;
  height: 490px;
}

.hl-item-card {
  position: absolute;
  top: 0;
  width: 446px;
  height: 490px;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
  border: 2px solid rgba(89, 178, 255, .34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 12%, rgba(42, 116, 236, .21), transparent 39%),
    linear-gradient(155deg, rgba(13, 28, 61, .98), rgba(4, 9, 24, .99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .23), inset 0 1px 0 rgba(255,255,255,.045);
  overflow: hidden;
  transition: transform 620ms var(--ease-enter), border-color 340ms ease, box-shadow 340ms ease, filter 340ms ease, opacity 340ms ease;
}

.hl-reference-card { left: 0; }
.hl-mystery-card { right: 0; }

.hl-item-card::before {
  content: "";
  position: absolute;
  left: 54px;
  right: 54px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  opacity: .72;
}

.hl-mystery-card::before {
  background: linear-gradient(90deg, transparent, #a77cff, transparent);
}

.hl-item-label {
  color: var(--color-muted);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .12em;
  text-align: center;
}

.hl-item-title {
  height: 92px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 45px;
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.03em;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hl-item-visual {
  position: relative;
  height: 182px;
  margin-top: 12px;
  border: 1px solid rgba(91, 177, 255, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(39, 230, 255, .17), transparent 36%),
    linear-gradient(145deg, rgba(20, 48, 91, .78), rgba(7, 14, 34, .92));
  overflow: hidden;
}

.hl-mystery-card .hl-item-visual {
  background:
    radial-gradient(circle at 50% 42%, rgba(167, 124, 255, .18), transparent 36%),
    linear-gradient(145deg, rgba(48, 34, 87, .78), rgba(7, 14, 34, .92));
}

.hl-visual-ring,
.hl-visual-ring::before,
.hl-visual-ring::after {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px solid rgba(39, 230, 255, .34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hl-visual-ring {
  width: 128px;
  height: 128px;
}

.hl-visual-ring::before,
.hl-visual-ring::after {
  content: "";
}

.hl-visual-ring::before { width: 90px; height: 90px; }
.hl-visual-ring::after { width: 48px; height: 48px; background: rgba(39,230,255,.08); }

.hl-mystery-card .hl-visual-ring,
.hl-mystery-card .hl-visual-ring::before,
.hl-mystery-card .hl-visual-ring::after {
  border-color: rgba(167, 124, 255, .40);
}

.hl-item-monogram {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 58px;
  font-weight: 950;
  letter-spacing: -.06em;
  text-shadow: 0 0 24px rgba(39,230,255,.32);
}

.hl-value-area {
  min-height: 120px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hl-value {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 56px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.045em;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.hl-value.is-hidden {
  color: #d4c8ff;
  font-size: 72px;
  text-shadow: 0 0 24px rgba(167, 124, 255, .44);
}

.hl-unit {
  height: 42px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
}

.hl-divider {
  position: absolute;
  left: 456px;
  top: 0;
  width: 60px;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.hl-divider-line {
  position: absolute;
  left: 29px;
  top: 34px;
  width: 2px;
  height: 422px;
  background: linear-gradient(to bottom, transparent, rgba(39,230,255,.36), rgba(167,124,255,.36), transparent);
}

.hl-divider-badge {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(185, 218, 255, .34);
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(8, 17, 40, .96);
  box-shadow: 0 0 24px rgba(39,230,255,.12);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: .04em;
  transition: color 260ms ease, border-color 260ms ease, transform 440ms var(--ease-impact), box-shadow 260ms ease;
}

.hl-direction-arrow {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 84px;
  opacity: 0;
  transition: opacity 260ms ease, transform 580ms var(--ease-enter);
}

.hl-direction-arrow::before,
.hl-direction-arrow::after {
  content: "";
  position: absolute;
  left: 18px;
  width: 4px;
  border-radius: 99px;
  background: var(--color-green);
  box-shadow: 0 0 16px rgba(56,236,146,.48);
}

.hl-direction-arrow::before { top: 12px; height: 60px; }
.hl-direction-arrow::after {
  width: 24px;
  height: 24px;
  left: 8px;
  top: 4px;
  border-radius: 4px 0 0 0;
  background: transparent;
  border-left: 4px solid var(--color-green);
  border-top: 4px solid var(--color-green);
  transform: rotate(45deg);
  box-shadow: none;
}

.hl-direction-arrow.is-down {
  transform: rotate(180deg);
}

.hl-choice-area {
  position: absolute;
  left: 0;
  top: 574px;
  width: 972px;
  height: 204px;
  display: grid;
  grid-template-columns: 474px 474px;
  column-gap: 24px;
}

.hl-choice-card {
  --choice-color: var(--color-cyan);
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 98px;
  align-items: center;
  padding: 18px 24px;
  border: 2px solid color-mix(in srgb, var(--choice-color) 42%, transparent);
  border-radius: 28px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--choice-color) 12%, transparent), transparent 50%),
    linear-gradient(155deg, rgba(12, 27, 59, .98), rgba(4, 9, 24, .99));
  box-shadow: 0 10px 24px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.045);
  overflow: hidden;
  transition: transform 360ms var(--ease-enter), border-color 300ms ease, filter 300ms ease, opacity 300ms ease, box-shadow 300ms ease;
}

.hl-choice-higher { --choice-color: var(--color-green); }
.hl-choice-lower { --choice-color: var(--color-blue); }

.hl-choice-arrow {
  position: relative;
  width: 76px;
  height: 96px;
  justify-self: center;
}

.hl-choice-arrow::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 24px;
  width: 8px;
  height: 62px;
  border-radius: 99px;
  background: var(--choice-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--choice-color) 45%, transparent);
}

.hl-choice-arrow::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-left: 8px solid var(--choice-color);
  border-top: 8px solid var(--choice-color);
  transform: rotate(45deg);
}

.hl-choice-lower .hl-choice-arrow { transform: rotate(180deg); }

.hl-choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hl-choice-copy strong {
  height: 62px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  font-size: 55px;
  font-weight: 950;
  line-height: .96;
  letter-spacing: -.03em;
}

.hl-choice-copy span {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: .055em;
}

.hl-choice-key {
  width: 70px;
  height: 70px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in srgb, var(--choice-color) 58%, white 4%);
  border-radius: 20px;
  color: var(--color-white);
  background: color-mix(in srgb, var(--choice-color) 13%, rgba(4,10,26,.94));
  font-size: 38px;
  font-weight: 950;
}

.hl-lock-sweep {
  position: absolute;
  left: -300px;
  top: 574px;
  width: 230px;
  height: 204px;
  opacity: 0;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(39,230,255,.16), rgba(255,255,255,.30), rgba(101,92,255,.15), transparent);
  filter: blur(2px);
  transform: skewX(-12deg);
}

.hl-result-badge {
  position: absolute;
  left: 50%;
  top: 220px;
  bottom: auto;
  min-width: 210px;
  height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56,236,146,.52);
  border-radius: 999px;
  color: var(--color-green);
  background: rgba(6, 32, 28, .94);
  box-shadow: 0 0 24px rgba(56,236,146,.16);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .075em;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.94);
  transition: opacity 300ms ease, transform 480ms var(--ease-impact);
  z-index: 6;
}

.higher-lower-scene.phase-locking .hl-choice-card {
  transform: scale(.98);
}

.higher-lower-scene.phase-locking .hl-lock-sweep {
  opacity: 1;
  animation: hl-lock-sweep 720ms var(--ease-enter) forwards;
}

@keyframes hl-lock-sweep {
  from { left: -300px; }
  to { left: 1040px; }
}

.higher-lower-scene.phase-locked .hl-choice-card,
.higher-lower-scene.phase-suspense .hl-choice-card {
  filter: saturate(.7) brightness(.78);
}

.higher-lower-scene.phase-suspense .hl-comparison-stage {
  filter: brightness(.72);
}

.higher-lower-scene.result-higher.phase-direction .hl-direction-arrow,
.higher-lower-scene.result-higher.phase-value .hl-direction-arrow,
.higher-lower-scene.result-higher.phase-audience .hl-direction-arrow,
.higher-lower-scene.result-higher.phase-score .hl-direction-arrow,
.higher-lower-scene.result-higher.phase-transfer .hl-direction-arrow,
.higher-lower-scene.result-higher.phase-complete .hl-direction-arrow,
.higher-lower-scene.result-lower.phase-direction .hl-direction-arrow,
.higher-lower-scene.result-lower.phase-value .hl-direction-arrow,
.higher-lower-scene.result-lower.phase-audience .hl-direction-arrow,
.higher-lower-scene.result-lower.phase-score .hl-direction-arrow,
.higher-lower-scene.result-lower.phase-transfer .hl-direction-arrow,
.higher-lower-scene.result-lower.phase-complete .hl-direction-arrow {
  opacity: 1;
  transform: translateY(0);
}

.higher-lower-scene.result-lower .hl-direction-arrow {
  transform: rotate(180deg);
}

.higher-lower-scene.result-higher.phase-direction .hl-mystery-card,
.higher-lower-scene.result-higher.phase-value .hl-mystery-card,
.higher-lower-scene.result-higher.phase-audience .hl-mystery-card,
.higher-lower-scene.result-higher.phase-score .hl-mystery-card,
.higher-lower-scene.result-higher.phase-complete .hl-mystery-card {
  transform: translateY(-12px);
  border-color: rgba(56,236,146,.70);
  box-shadow: var(--shadow-cyan), 0 0 34px rgba(56,236,146,.16);
}

.higher-lower-scene.result-lower.phase-direction .hl-mystery-card,
.higher-lower-scene.result-lower.phase-value .hl-mystery-card,
.higher-lower-scene.result-lower.phase-audience .hl-mystery-card,
.higher-lower-scene.result-lower.phase-score .hl-mystery-card,
.higher-lower-scene.result-lower.phase-complete .hl-mystery-card {
  transform: translateY(12px);
  border-color: rgba(56,236,146,.70);
  box-shadow: var(--shadow-cyan), 0 0 34px rgba(56,236,146,.16);
}

.higher-lower-scene.result-higher.phase-direction .hl-choice-higher,
.higher-lower-scene.result-higher.phase-value .hl-choice-higher,
.higher-lower-scene.result-higher.phase-audience .hl-choice-higher,
.higher-lower-scene.result-higher.phase-score .hl-choice-higher,
.higher-lower-scene.result-higher.phase-complete .hl-choice-higher,
.higher-lower-scene.result-lower.phase-direction .hl-choice-lower,
.higher-lower-scene.result-lower.phase-value .hl-choice-lower,
.higher-lower-scene.result-lower.phase-audience .hl-choice-lower,
.higher-lower-scene.result-lower.phase-score .hl-choice-lower,
.higher-lower-scene.result-lower.phase-complete .hl-choice-lower {
  border-color: rgba(56,236,146,.78);
  box-shadow: 0 0 32px rgba(56,236,146,.18), inset 0 1px 0 rgba(255,255,255,.06);
  transform: scale(1.018);
}

.higher-lower-scene.result-higher.phase-direction .hl-choice-lower,
.higher-lower-scene.result-higher.phase-value .hl-choice-lower,
.higher-lower-scene.result-higher.phase-audience .hl-choice-lower,
.higher-lower-scene.result-higher.phase-score .hl-choice-lower,
.higher-lower-scene.result-higher.phase-complete .hl-choice-lower,
.higher-lower-scene.result-lower.phase-direction .hl-choice-higher,
.higher-lower-scene.result-lower.phase-value .hl-choice-higher,
.higher-lower-scene.result-lower.phase-audience .hl-choice-higher,
.higher-lower-scene.result-lower.phase-score .hl-choice-higher,
.higher-lower-scene.result-lower.phase-complete .hl-choice-higher {
  opacity: .34;
  filter: grayscale(.4) brightness(.72);
}

.higher-lower-scene.phase-value .hl-result-badge,
.higher-lower-scene.phase-audience .hl-result-badge,
.higher-lower-scene.phase-score .hl-result-badge,
.higher-lower-scene.phase-transfer .hl-result-badge,
.higher-lower-scene.phase-complete .hl-result-badge {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.higher-lower-scene.result-equal.phase-direction .hl-item-card,
.higher-lower-scene.result-equal.phase-value .hl-item-card,
.higher-lower-scene.result-equal.phase-audience .hl-item-card,
.higher-lower-scene.result-equal.phase-score .hl-item-card,
.higher-lower-scene.result-equal.phase-complete .hl-item-card {
  border-color: rgba(255,212,91,.64);
  box-shadow: var(--shadow-gold);
}

.higher-lower-scene.result-equal.phase-direction .hl-choice-card,
.higher-lower-scene.result-equal.phase-value .hl-choice-card,
.higher-lower-scene.result-equal.phase-audience .hl-choice-card,
.higher-lower-scene.result-equal.phase-score .hl-choice-card,
.higher-lower-scene.result-equal.phase-complete .hl-choice-card {
  opacity: .45;
  filter: saturate(.5);
}

.higher-lower-scene.result-equal .hl-divider-badge {
  color: var(--color-gold);
  border-color: rgba(255,212,91,.62);
  box-shadow: var(--shadow-gold);
}

.higher-lower-scene.result-equal .hl-result-badge {
  color: var(--color-gold);
  border-color: rgba(255,212,91,.56);
  background: rgba(42,32,9,.94);
}

.higher-lower-scene.phase-transfer .hl-reference-card {
  opacity: 0;
  transform: translateX(-170px) scale(.94);
}

.higher-lower-scene.phase-transfer .hl-mystery-card {
  transform: translateX(-526px) translateY(0) scale(1);
  border-color: rgba(39,230,255,.58);
  box-shadow: var(--shadow-cyan);
}

.higher-lower-scene.phase-transfer .hl-choice-area,
.higher-lower-scene.phase-transfer .hl-divider {
  opacity: .2;
  transition: opacity 300ms ease;
}

.debug-enabled .hl-meta-row,
.debug-enabled .hl-item-card,
.debug-enabled .hl-choice-card {
  outline: 2px dashed rgba(255,255,255,.34);
  outline-offset: -4px;
}

.reduced-motion .hl-item-card,
.reduced-motion .hl-choice-card,
.reduced-motion .hl-result-badge,
.reduced-motion .hl-direction-arrow {
  transform: none !important;
}

.reduced-motion .hl-lock-sweep,
.no-flash .hl-lock-sweep {
  display: none !important;
}
