/* Builds on the site's /styles.css: same tokens, rules, and hover inversion. */

/* Doubled class so it outranks the panel's own `p { margin: 0 }`. */
.secondary-panel.lucky > * + * {
  margin-top: clamp(24px, 3vw, 36px);
}

.lucky .lucky-title {
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: normal;
  line-height: 1;
}

.lucky .lucky-title:focus,
.lucky .lucky-prompt:focus {
  outline: none;
}

.lucky-repeat {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.lucky-repeat:hover,
.lucky-repeat:focus-visible {
  text-decoration-color: transparent;
}

.lucky .lucky-eyebrow {
  margin: 0 0 -12px;
  font-size: clamp(0.8rem, 1vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lucky .lucky-hint {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lucky-options {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.6vw, 22px);
}

.lucky-option {
  min-width: 140px;
  min-height: 60px;
  padding: 12px 24px;
  border: var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1;
}

.lucky-option:hover,
.lucky-option:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.lucky-option:active {
  transform: translate(3px, 3px);
}

.lucky-visual {
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
}

/* The tested colors are the only color on the site, by necessity. */
.lucky-circles {
  display: grid;
  grid-template-columns: repeat(3, clamp(64px, 12vw, 110px));
  gap: clamp(16px, 2.4vw, 32px);
}

.lucky-circle {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.lucky-arena {
  position: relative;
  height: clamp(240px, 40vh, 360px);
  border: var(--rule);
}

.lucky-target {
  position: absolute;
  min-width: 0;
  transform: translate(-50%, -50%);
}

.lucky-target:active {
  transform: translate(calc(-50% + 3px), calc(-50% + 3px));
}

.lucky-timer {
  height: 14px;
  border: 2px solid var(--ink);
}

.lucky-timer > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
}

.lucky .lucky-stat {
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.9;
}

.lucky .lucky-stat-label {
  margin-top: 10px;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lucky .lucky-source {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  overflow-wrap: anywhere;
}

.lucky-source a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.lucky-traits {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.lucky-traits li {
  padding-block: 8px;
  border-bottom: 2px solid var(--ink);
}

.lucky-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .lucky-option {
    flex: 1 1 100%;
  }

  .lucky-target {
    flex: none;
  }
}
