/* Homepage Frequency stage: a real quick round plus the public signal wall. */

.frequency-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 8vw, 110px) var(--gutter);
  border-top: 1px solid rgba(238, 240, 232, .08);
  border-bottom: 1px solid rgba(238, 240, 232, .08);
  background:
    radial-gradient(ellipse at 8% 6%, rgba(86, 119, 53, .22), transparent 35%),
    radial-gradient(ellipse at 92% 24%, rgba(200, 255, 67, .07), transparent 34%),
    #0b0f0c;
}

.frequency-home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 240, 232, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 232, .026) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.frequency-home::after {
  content: '';
  position: absolute;
  right: -16vw;
  top: 26%;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgba(200, 255, 67, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(200, 255, 67, .016),
    0 0 0 14vw rgba(200, 255, 67, .009);
  pointer-events: none;
}

.frequency-home-inner {
  position: relative;
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.frequency-home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .54fr);
  gap: clamp(34px, 7vw, 104px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.frequency-kicker {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aeb8aa;
  font: 9px/1.4 var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.frequency-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(200, 255, 67, .7);
}

.frequency-home-heading h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 550;
  line-height: .94;
  letter-spacing: -.07em;
}

.frequency-home-heading h2 em {
  color: var(--lime);
  font-style: normal;
  font-weight: 500;
}

.frequency-home-heading > p {
  max-width: 370px;
  margin: 0 0 5px;
  color: #9da79a;
  font-size: 13px;
  line-height: 1.85;
}

.frequency-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(330px, .76fr);
  gap: 14px;
  align-items: stretch;
}

.frequency-round,
.frequency-wall {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(237, 245, 231, .13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)),
    #0e1310;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 26px 70px rgba(0, 0, 0, .22);
}

.frequency-round {
  min-height: 504px;
  padding: clamp(20px, 2.5vw, 30px);
  display: flex;
  flex-direction: column;
}

.frequency-round::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 41%, rgba(200, 255, 67, .075), transparent 39%),
    linear-gradient(90deg, transparent 49.9%, rgba(238, 240, 232, .045) 50%, transparent 50.1%);
}

.frequency-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(238, 240, 232, .1);
  color: #7f8b7e;
  font: 8px/1.45 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.frequency-panel-top > span:last-child {
  color: var(--lime);
}

.frequency-round-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, .68fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: 242px;
  padding: 24px 0 18px;
}

.frequency-round-orbit {
  position: relative;
  width: min(100%, 210px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(200, 255, 67, .22);
  border-radius: 50%;
  transition: border-color .35s ease, box-shadow .35s ease;
}

.frequency-round-orbit::before,
.frequency-round-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.frequency-round-orbit::before {
  inset: 17%;
  border: 1px dashed rgba(200, 255, 67, .23);
  animation: frequency-home-spin 28s linear infinite;
}

.frequency-round-orbit::after {
  inset: 38%;
  border: 1px solid rgba(200, 255, 67, .28);
  background: radial-gradient(circle, rgba(200, 255, 67, .16), rgba(200, 255, 67, .02) 62%, transparent 64%);
}

.frequency-round-orbit.has-pick {
  border-color: rgba(200, 255, 67, .58);
  box-shadow: 0 0 35px rgba(200, 255, 67, .08);
}

.frequency-orbit-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 77%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 255, 67, .2), transparent);
  transform-origin: center;
}

.frequency-orbit-axis:nth-child(1) { transform: translate(-50%, -50%) rotate(18deg); }
.frequency-orbit-axis:nth-child(2) { transform: translate(-50%, -50%) rotate(139deg); }

.frequency-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 51px;
  height: 51px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 255, 67, .6);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2ffc4, #b8e950 14%, #4c671e 48%, #10160f 73%);
  color: #0a0d08;
  font: 24px/1 Georgia, serif;
  box-shadow: 0 0 28px rgba(200, 255, 67, .24);
}

.frequency-orbit-seat {
  position: absolute;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 240, 232, .19);
  border-radius: 50%;
  background: #101611;
  color: #9fa99c;
  font: 8px/1 var(--font-mono);
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.frequency-orbit-seat[data-seat="you"] { left: 12%; top: 18%; }
.frequency-orbit-seat[data-seat="friend-a"] { right: 3%; top: 44%; }
.frequency-orbit-seat[data-seat="friend-b"] { left: 31%; bottom: 5%; }

.frequency-round-orbit[data-selection="you"] .frequency-orbit-seat[data-seat="you"],
.frequency-round-orbit[data-selection="friend-a"] .frequency-orbit-seat[data-seat="friend-a"],
.frequency-round-orbit[data-selection="friend-b"] .frequency-orbit-seat[data-seat="friend-b"] {
  border-color: var(--lime);
  background: var(--lime);
  color: #0b0e09;
  box-shadow: 0 0 18px rgba(200, 255, 67, .42);
}

.frequency-round-copy {
  min-width: 0;
}

.frequency-round-copy meta {
  display: block;
}

.frequency-round-meta {
  margin: 0 0 12px;
  color: var(--lime);
  font: 8px/1.5 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.frequency-round-copy h3 {
  max-width: 480px;
  margin: 0;
  color: #f0f3ea;
  font-size: clamp(24px, 2.5vw, 35px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.frequency-round-help {
  max-width: 430px;
  margin: 13px 0 0;
  color: #8e998c;
  font-size: 11px;
  line-height: 1.75;
}

.frequency-seats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.frequency-seat-choice {
  min-height: 67px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(238, 240, 232, .13);
  border-radius: 6px;
  background: rgba(5, 9, 6, .42);
  color: #b8c0b4;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.frequency-seat-choice:hover {
  border-color: rgba(200, 255, 67, .34);
  color: var(--paper);
}

.frequency-seat-choice[aria-pressed="true"] {
  border-color: rgba(200, 255, 67, .64);
  background: rgba(200, 255, 67, .08);
  color: var(--paper);
}

.frequency-seat-choice i {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 255, 67, .28);
  border-radius: 50%;
  color: var(--lime);
  font: 7px/1 var(--font-mono);
  font-style: normal;
}

.frequency-seat-choice span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frequency-seat-choice strong {
  font-size: 10px;
  font-weight: 700;
}

.frequency-seat-choice small {
  overflow: hidden;
  color: #747f73;
  font: 7px/1.4 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-round-result {
  position: relative;
  z-index: 1;
  min-height: 38px;
  margin: 10px 0 0;
  color: #8c9789;
  font: 9px/1.6 var(--font-mono);
}

.frequency-round-result.is-ready {
  color: #c8d7b4;
}

.frequency-round-actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.frequency-primary-action,
.frequency-next-question {
  min-height: 45px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 10px/1.2 var(--font-sans);
  letter-spacing: .01em;
}

.frequency-primary-action {
  flex: 1;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: #0a0d08;
  transition: background .2s ease, transform .2s ease;
}

.frequency-primary-action:hover {
  background: #ddff8b;
  transform: translateY(-1px);
}

.frequency-primary-action span:last-child {
  font-size: 16px;
  font-weight: 500;
}

.frequency-next-question {
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(238, 240, 232, .2);
  background: transparent;
  color: #b9c2b5;
  cursor: pointer;
}

.frequency-next-question:hover {
  border-color: rgba(200, 255, 67, .45);
  color: var(--lime);
}

.frequency-wall {
  min-height: 504px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
}

.frequency-wall-top {
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(238, 240, 232, .1);
  color: #7f8b7e;
  font: 8px/1.45 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.frequency-wall-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #879283;
  white-space: nowrap;
}

.frequency-wall-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #788174;
}

.frequency-wall-status[data-state="live"] {
  color: var(--lime);
}

.frequency-wall-status[data-state="live"] i {
  background: var(--lime);
  box-shadow: 0 0 9px rgba(200, 255, 67, .7);
}

.frequency-wall-status[data-state="loading"] i {
  animation: frequency-home-pulse 1.2s ease-in-out infinite;
}

.frequency-wall-head {
  padding: 22px 0 16px;
}

.frequency-wall-head h3 {
  margin: 0;
  color: #eff2e9;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.frequency-wall-head p {
  max-width: 340px;
  margin: 9px 0 0;
  color: #899487;
  font-size: 10px;
  line-height: 1.7;
}

.frequency-wall-list {
  min-height: 224px;
  display: flex;
  flex-direction: column;
}

.frequency-signal {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid rgba(238, 240, 232, .08);
}

.frequency-signal:first-child {
  border-top: 0;
}

.frequency-signal-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--signal-color, #c8ff43) 48%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--signal-color, #c8ff43) 11%, #0b100c);
  color: var(--signal-color, #c8ff43);
  font: 7px/1 var(--font-mono);
}

.frequency-signal-body {
  min-width: 0;
}

.frequency-signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.frequency-signal-head strong {
  overflow: hidden;
  color: #d9dfd5;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-signal-head time {
  color: #697369;
  font: 7px/1.4 var(--font-mono);
  white-space: nowrap;
}

.frequency-signal-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #9ca59a;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.frequency-signal-reaction {
  align-self: center;
  min-width: 34px;
  color: #7d887c;
  font: 7px/1.4 var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.frequency-wall-empty {
  min-height: 224px;
  padding: 21px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-top: 1px solid rgba(238, 240, 232, .08);
}

.frequency-wall-empty-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 255, 67, .32);
  border-radius: 50%;
  color: var(--lime);
  font: 20px/1 Georgia, serif;
}

.frequency-wall-empty strong {
  margin-top: 13px;
  color: #e3e8dd;
  font-size: 14px;
  font-weight: 600;
}

.frequency-wall-empty p {
  max-width: 300px;
  margin: 6px 0 12px;
  color: #879184;
  font-size: 10px;
  line-height: 1.7;
}

.frequency-wall-empty a {
  color: var(--lime);
  font: 8px/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.frequency-weekly-prompt {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(238, 240, 232, .08);
  color: #717c70;
  font: 8px/1.6 var(--font-mono);
}

.frequency-weekly-prompt b {
  color: #a9b4a4;
  font-weight: 500;
}

.frequency-signal-skeleton {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  border-top: 1px solid rgba(238, 240, 232, .08);
}

.frequency-signal-skeleton:first-child {
  border-top: 0;
}

.frequency-signal-skeleton i,
.frequency-signal-skeleton span {
  display: block;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(238, 240, 232, .045), rgba(238, 240, 232, .1), rgba(238, 240, 232, .045));
  background-size: 200% 100%;
  animation: frequency-home-shimmer 1.7s linear infinite;
}

.frequency-signal-skeleton i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.frequency-signal-skeleton span {
  width: 100%;
  height: 8px;
  margin-bottom: 7px;
}

.frequency-signal-skeleton span:nth-child(3) {
  width: 72%;
}

.frequency-wall-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(238, 240, 232, .1);
}

.frequency-wall-foot a,
.frequency-wall-refresh {
  color: var(--lime);
  font: 8px/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.frequency-wall-refresh {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.frequency-wall-foot > span {
  color: #687267;
  font: 7px/1.4 var(--font-mono);
  letter-spacing: .08em;
}

.frequency-home-strip {
  min-height: 66px;
  margin-top: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(238, 240, 232, .1);
  border-radius: 6px;
  background: rgba(6, 10, 7, .48);
  color: #8b9688;
  font: 9px/1.65 var(--font-mono);
}

.frequency-home-strip b {
  color: #e3e8de;
  font-weight: 500;
}

.frequency-home-strip > div {
  display: flex;
  align-items: center;
  gap: 17px;
  white-space: nowrap;
}

.frequency-home-strip a {
  color: #b5c0b0;
  transition: color .2s ease;
}

.frequency-home-strip a:hover {
  color: var(--lime);
}

@keyframes frequency-home-spin {
  to { transform: rotate(360deg); }
}

@keyframes frequency-home-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

@keyframes frequency-home-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 1050px) {
  .frequency-home-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .frequency-home-heading > p {
    max-width: 620px;
  }

  .frequency-home-grid {
    grid-template-columns: 1fr;
  }

  .frequency-wall {
    min-height: 0;
  }

  .frequency-wall-list {
    min-height: 0;
  }

  .frequency-signal:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 650px) {
  .frequency-home {
    padding-top: 70px;
    padding-bottom: 74px;
  }

  .frequency-home-heading h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .frequency-round {
    min-height: 0;
    padding: 19px;
  }

  .frequency-round-stage {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
    text-align: center;
  }

  .frequency-round-orbit {
    width: 170px;
  }

  .frequency-round-copy h3,
  .frequency-round-help {
    margin-left: auto;
    margin-right: auto;
  }

  .frequency-seats {
    gap: 6px;
  }

  .frequency-seat-choice {
    min-height: 61px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .frequency-seat-choice span {
    align-items: center;
  }

  .frequency-round-actions {
    flex-direction: column;
  }

  .frequency-primary-action,
  .frequency-next-question {
    width: 100%;
  }

  .frequency-wall {
    padding: 19px;
  }

  .frequency-home-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .frequency-home-strip > div {
    flex-wrap: wrap;
    gap: 9px 16px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frequency-round-orbit::before,
  .frequency-wall-status[data-state="loading"] i,
  .frequency-signal-skeleton i,
  .frequency-signal-skeleton span {
    animation: none;
  }
}
