/* css/app.css: Impostor */

.imenu {
  max-width: 520px;
  padding: calc(var(--safe-top) + var(--s3)) var(--s4) calc(var(--safe-bottom) + var(--s8));
  margin: 0 auto;
}

.ihead {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.ihead__title {
  font-size: var(--fs-28, 1.75rem);
  font-weight: 850;
  letter-spacing: var(--tight);
}

.inote {
  margin-bottom: var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-card);
  background: var(--surface-2);
  font-weight: 700;
}

.icard {
  display: grid;
  gap: var(--s4);
  margin-bottom: var(--s4);
  padding: var(--s4);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.irow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.ilabel {
  font-weight: 750;
}

.ibig {
  min-height: 60px;
  font-size: var(--fs-20);
}

.ihow {
  margin-top: var(--s5);
  color: var(--ink-2);
}

.ihow summary {
  cursor: pointer;
  font-weight: 750;
}

.ihow p {
  margin-top: var(--s2);
  line-height: 1.5;
}

.icount {
  margin-top: var(--s4);
  font-size: var(--fs-13);
  text-align: center;
}

/* Every step of a round: one background, whatever's shown. */
.iscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  min-height: 100dvh;
  padding: calc(var(--safe-top) + var(--s5)) var(--s5) calc(var(--safe-bottom) + var(--s5));
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.iwho {
  color: var(--ink-3);
  font-size: var(--fs-15);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ibig-number {
  font-size: clamp(6rem, 30vw, 11rem);
  font-weight: 900;
  line-height: 1;
}

/* The word and "Impostor": deliberately identical. */
.iword {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.6rem, 11vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.iprompt {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 850;
}

.ihint {
  color: var(--ink-3);
  font-size: var(--fs-15);
  font-weight: 650;
}

/* "Impostor gets hint" */
.icheck {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  cursor: pointer;
}

.icheck input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icheck__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--line-strong);
}

.icheck input:checked + .icheck__box {
  background: var(--crimson);
  border-color: var(--crimson);
}

.icheck input:checked + .icheck__box::after {
  content: "";
  width: 6px;
  height: 12px;
  margin-top: -3px;
  border: solid var(--varden);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.icheck input:focus-visible + .icheck__box {
  outline: 2px solid var(--varden);
  outline-offset: 2px;
}

.icheck__text {
  display: grid;
  gap: 2px;
}

.icheck__sub {
  color: var(--ink-3);
  font-size: var(--fs-13);
}

/* The line under the word: the impostor's hint, or everyone else's reminder. Same look for both. */
.iclue {
  margin-top: calc(var(--s3) * -1);
  color: var(--ink-2);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 750;
}

/* Just the number between − and +. */
.icard .stepper__value {
  min-width: 2.5ch;
  text-align: center;
}
