/* Avoidant coping lesson. All rules scoped under .avc-* */

.avc-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#scene.full .avc-sc { flex: 1; min-height: 0; padding: 0 18px; box-sizing: border-box; }
.avc-top { width: 100%; max-width: 380px; margin-top: 10px; }
.avc-dread.avc-hot .gt i { background: var(--streak); }

/* the street */
.avc-st { position: relative; width: 100%; max-width: 380px; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.avc-yard { position: relative; width: min(86%, 330px); margin: 0 auto -6px; }
.avc-house { display: block; width: 100%; position: relative; z-index: 1; }
.avc-pen { position: absolute; left: 60%; width: 34%; bottom: 33%; height: 120%; overflow: hidden; z-index: 2; pointer-events: none; }
.avc-dog { position: absolute; left: 0; bottom: 0; width: 100%; transform: translateY(100%); transition: transform .16s cubic-bezier(.2, .9, .3, 1.2); }
.avc-bark .avc-dog { transform: translateY(6%); }
.avc-gone .avc-dog { display: none; }
.avc-sign { position: absolute; z-index: 3; left: 70%; bottom: 36%; padding: 3px 8px; border-radius: 6px; background: #F3EBDD; color: #2A2216; font: 800 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 3px 0 #9C7A4E; opacity: 0; transform: translateY(10px) rotate(-4deg); transition: opacity .4s, transform .4s; }
.avc-gone.avc-shown .avc-sign { opacity: 1; transform: rotate(-4deg); }

.avc-lane { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; width: 100%; height: 60px; padding: 0 10px 5px; border: 0; border-radius: 10px; background: #2A3048; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); color: var(--dim); cursor: pointer; }
.avc-lane span { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.avc-lane:disabled { cursor: default; }
.avc-locked .avc-lane span { opacity: .5; }
.avc-a { z-index: 2; }
.avc-road { position: relative; height: 34px; margin: 4px 0; border-radius: 6px; background: #161B2B; }
.avc-road i { position: absolute; left: 4%; right: 4%; top: 50%; border-top: 3px dashed rgba(252, 192, 80, .45); }
.avc-b { height: 64px; }

.avc-walker { position: absolute; left: 0; top: 0; z-index: 4; height: 84px; pointer-events: none; will-change: transform; }
.avc-walker img { height: 100%; display: block; }
.avc-walker.go img { animation: avc-step .42s ease-in-out infinite; }
@keyframes avc-step { 50% { transform: translateY(-3px); } }

.avc-tag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 16px; border-radius: 999px; background: var(--gold); color: #2A2216; font-size: 17px; font-weight: 800; opacity: 0; transition: opacity .2s; }
.avc-tag.on { opacity: 1; }

/* the lab: the two panels are the answers */
.avc-lab { width: 100%; max-width: 340px; }
.avc-panels { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.avc-panels .choice { padding: 0; }
.avc-panel { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 14px 8px; text-align: center; }
.avc-panel::before { content: ''; display: block; min-height: 17px; font-size: 13px; font-weight: 700; }
.avc-panel b { font: 700 16px var(--serif); }
.avc-panel em { font-style: normal; font-size: 13px; color: var(--dim); }
.avc-lamp { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px rgba(252, 192, 80, .55); margin-bottom: 4px; }
.avc-lab.on .avc-btn::before { content: 'Never found out'; color: var(--gold); }
.avc-lab.on .avc-nob::before { content: 'Learned they stopped'; color: var(--dim); }

@media (max-height: 700px) {
  .avc-yard { width: min(76%, 280px); }
  .avc-lane { height: 46px; }
  .avc-b { height: 50px; }
  .avc-road { height: 26px; }
  .avc-walker { height: 66px; }
}
