/* Asch conformity experiment. Everything scoped under .asc-*. */
.asc-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* the card: a reference line, then A, B, C */
.asc-card {
  display: flex; align-items: flex-end; gap: 18px; padding: 14px 18px 10px; border-radius: 14px;
  background: #F4EFE6; box-shadow: 0 6px 0 #070a14; animation: asc-in .45s cubic-bezier(.2,.8,.2,1) both;
}
.asc-ref, .asc-line { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.asc-ref { padding-right: 18px; border-right: 2px dashed #CFC6B6; }
.asc-ref i, .asc-line i { display: block; width: 7px; border-radius: 4px; background: #1B1F2E; }
.asc-ref span { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6F6757; }
.asc-opts { display: flex; gap: 6px; }
.asc-line { width: 52px; min-height: 140px; padding: 6px 0 4px; border-radius: 10px; transition: background .2s; }
.asc-line span { font-family: var(--mono); font-size: 18px; font-weight: 600; color: #1B1F2E; }
.asc-line:not(:disabled):active { background: rgba(123,92,253,.18); }
.asc-line.picked { background: rgba(123,92,253,.22); }
.asc-line.true i { background: #1F9E6E; }
.asc-line.true span { color: #1F9E6E; }

/* the row of seats */
.asc-row { display: flex; justify-content: center; align-items: flex-end; gap: 4px; width: 100%; }
.asc-row.enter .asc-seat { animation: asc-in .4s cubic-bezier(.2,.8,.2,1) both; }
.asc-row.enter .asc-seat:nth-child(2) { animation-delay: .06s; }
.asc-row.enter .asc-seat:nth-child(3) { animation-delay: .12s; }
.asc-row.enter .asc-seat:nth-child(4) { animation-delay: .18s; }
.asc-row.enter .asc-seat:nth-child(5) { animation-delay: .24s; }
.asc-row.enter .asc-seat:nth-child(6) { animation-delay: .30s; }
.asc-row.enter .asc-seat:nth-child(7) { animation-delay: .36s; }
.asc-seat { position: relative; display: flex; flex-direction: column; align-items: center; width: 44px; min-height: 92px; justify-content: flex-end; }
.asc-pp { width: 36px; height: 45px; display: block; }
.asc-bub {
  min-width: 30px; height: 28px; padding: 0 6px; margin-bottom: 4px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px; font-weight: 600; color: transparent; background: transparent; transform: scale(.6); opacity: 0;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), opacity .15s;
}
.asc-bub.on { color: #1B1F2E; background: var(--text); transform: none; opacity: 1; }
.asc-bub.honest { background: var(--mint); color: var(--mint-ink); }
.asc-tag { height: 18px; margin-top: 3px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--faint); white-space: nowrap; }
.asc-tag.on { color: var(--dim); }
.asc-tag.actor { color: var(--streak); }
.asc-tag.honest { color: var(--mint); }
.asc-you .asc-tag { color: var(--gold); }
.asc-you .asc-bub.on { background: var(--gold); }
.asc-seat.turn .asc-pp { filter: drop-shadow(0 0 8px rgba(252,192,80,.8)); }
.asc-seat.flip .asc-pp { animation: asc-flip .35s ease both; }
.asc-seat[data-tap] { cursor: pointer; }
.asc-solo .asc-seat { width: 64px; }

/* many seats: they share the width */
.asc-many { gap: 2px; min-height: 92px; }
.asc-many .asc-seat { width: calc((100% - 32px) / var(--n, 2)); max-width: 44px; min-width: 0; }
.asc-many .asc-pp { width: 100%; max-width: 36px; height: auto; }
.asc-many .asc-bub { min-width: 0; width: 100%; max-width: 30px; height: 22px; font-size: 13px; padding: 0; }
.asc-many .asc-tag { font-size: 12px; }
.asc-g { width: 100%; max-width: 330px; }

/* Asch's 50 */
.asc-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 28px)); gap: 4px 6px; justify-content: center; }
.asc-dot { display: block; opacity: .55; transition: opacity .3s, filter .3s; }
.asc-dot .asc-pp { width: 100%; height: auto; }
.asc-dot.gold { opacity: 1; }
.asc-dot.gold path { fill: var(--gold); }
.asc-dot.never { opacity: 1; }
.asc-dot.never path { fill: #8A93AE; }
.asc-leg { display: flex; gap: 18px; font-size: 13px; font-weight: 700; color: var(--dim); opacity: 0; transition: opacity .4s; }
.asc-leg.on { opacity: 1; }
.asc-leg span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.asc-leg .g::before { background: var(--gold); }
.asc-leg .n::before { background: #8A93AE; }

@keyframes asc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes asc-flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }

@media (max-height: 700px) {
  .asc-line { min-height: 124px; }
  .asc-card { padding: 10px 14px 8px; }
  .asc-seat { min-height: 84px; }
  .asc-pp { width: 32px; height: 40px; }
  .asc-sc { gap: 10px; }
  .asc-grid { grid-template-columns: repeat(10, minmax(0, 22px)); }
}
