/* Fear of negative evaluation lesson. All rules scoped under .fne-* */

.fne-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fne-hero { width: min(80%, 320px); }
.fne-hero img { width: 100%; display: block; }
.fne-shirt { width: min(62%, 240px); }
.fne-shirt img { width: 100%; display: block; }
.fne-note { font-size: 12px; color: var(--faint); text-align: center; }

/* the glimpse */
.fne-frame { position: relative; width: 100%; max-width: 360px; border-radius: 16px; overflow: hidden; background: #1B2238; }
.fne-room svg { width: 100%; display: block; }
.fne-wall { fill: #232C48; }
.fne-wb { fill: #E9ECF2; }
.fne-ink { stroke: #4F6A8C; stroke-width: 2; fill: none; stroke-linecap: round; }
.fne-clock { fill: #E9ECF2; }
.fne-hand { stroke: #2A2216; stroke-width: 1.6; stroke-linecap: round; }
.fne-win { fill: #3E5A86; }
.fne-desk { fill: #8E6A4C; }
.fne-phone { fill: #9FE8FF; stroke: #1A2136; stroke-width: 1; }
.fne-book { fill: #D85555; }
.fne-lap { fill: #A69F93; }
.fne-hair0 { fill: #2A1E14; } .fne-hair1 { fill: #6B4423; } .fne-hair2 { fill: #C9A060; }
.fne-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #1B2238; transition: opacity .25s; }
.fne-cover b { font: 700 24px var(--serif); }
.fne-cover span { font: 700 14px var(--mono); color: var(--dim); }
.fne-cover.fne-gone { opacity: 0; pointer-events: none; }
.fne-timer { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--gold); }
.fne-timer.fne-run { width: 0; transition: width 4s linear; }
.fne-room .fne-kid { transition: opacity .4s; }
.fne-spot .fne-kid { opacity: .35; }
.fne-spot .fne-kid.fne-shirtkid { opacity: 1; }

/* the study room */
.fne-lab { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.fne-door { position: relative; height: 50px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-strong); }
.fne-you { position: absolute; left: 8px; top: 3px; display: flex; flex-direction: column; align-items: center; }
.fne-you .fne-p { width: 30px; height: 30px; }
.fne-you .fne-p path { fill: #F2C230; }
.fne-you .fne-p circle { fill: #E8B894; }
.fne-you b { font-size: 12px; line-height: 1; color: var(--gold); white-space: nowrap; }
.fne-minds .fne-you { left: 50%; transform: translateX(-50%) !important; flex-direction: row; gap: 8px; top: 9px; }
.fne-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.fne-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); }
.fne-p { width: 28px; height: 28px; flex: none; }
.fne-p circle { fill: #C9C3B8; }
.fne-p path { fill: #6E6A8A; }
.fne-form { display: block; width: 20px; height: 14px; border-radius: 2px; background: #E9ECF2; }
.fne-cap { font-size: 12px; font-weight: 700; line-height: 1.15; color: var(--text); text-align: center; }
.fne-minds .fne-seats { grid-template-columns: 1fr; gap: 5px; }
.fne-minds .fne-seat { flex-direction: row; gap: 10px; padding: 5px 12px; border-color: var(--line-strong); background: rgba(123, 92, 253, .1); }
.fne-minds .fne-form { display: none; }
.fne-minds .fne-cap { font-size: 14px; text-align: left; }
.fne-tally { text-align: center; font-size: 14px; font-weight: 700; color: var(--dim); }
.fne-tally b { font: 800 18px var(--serif); color: var(--gold); }

/* the puzzle */
.fne-clock { width: 100%; max-width: 300px; height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.fne-clock i { display: block; height: 100%; width: 100%; background: var(--gold); }
.fne-slots { display: flex; gap: 6px; }
.fne-slots i { display: grid; place-items: center; width: 40px; height: 46px; border-radius: 10px; border: 2px dashed var(--line-strong); font: 800 22px var(--mono); font-style: normal; }
.fne-won i { border-style: solid; border-color: var(--mint); color: var(--mint); }
.fne-tiles { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; margin-top: 10px; }
.fne-tile { height: 56px; border-radius: 14px; background: #F3EBDD; color: #2A2216; font: 800 24px var(--mono); box-shadow: inset 0 -4px 0 #CBBFA8; }
.fne-tile:disabled { opacity: .25; }
.fne-puz { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fne-puz b { padding: 8px 10px; border-radius: 10px; background: #F3EBDD; color: #2A2216; font: 700 15px var(--mono); letter-spacing: .12em; }
.fne-bars { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; }
.fne-bar span { display: block; font-size: 13px; font-weight: 700; color: var(--dim); margin-bottom: 4px; }
.fne-bar div { height: 14px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.fne-bar i { display: block; height: 100%; width: 0; border-radius: 999px; }
.fne-b1 { background: var(--streak); }
.fne-b2 { background: var(--mint); }
.fne-bars small { font-size: 12px; color: var(--faint); text-align: center; }

.fne-two { width: 100%; max-width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fne-two div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 10px; border-radius: 18px; background: rgba(63, 214, 154, .1); border: 2px solid var(--mint); }
.fne-two b { font: 700 18px var(--serif); }
.fne-two span { font-size: 14px; color: var(--dim); }

/* avoidance and the speech groups */
.fne-acts, .fne-grp { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.fne-acts div, .fne-grp div { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); transition: border-color .3s, background .3s; }
.fne-acts b, .fne-grp b { display: block; font: 700 18px/1.25 var(--serif); }
.fne-acts span { font-size: 14px; color: var(--dim); }
.fne-grp small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.fne-grp .fne-win { border-color: var(--mint); background: rgba(63, 214, 154, .1); }

@media (max-height: 700px) {
  .fne-hero { width: min(62%, 240px); }
  .fne-shirt { width: min(48%, 190px); }
  .fne-door { height: 44px; }
  .fne-you .fne-p { width: 24px; height: 24px; }
  .fne-p { width: 22px; height: 22px; }
  .fne-minds .fne-seat { padding: 3px 10px; }
  .fne-tiles { grid-template-columns: repeat(3, 58px); gap: 8px; margin-top: 4px; }
  .fne-tile { height: 48px; }
  .fne-acts div, .fne-grp div { padding: 9px 12px; }
  .fne-acts b, .fne-grp b { font-size: 16px; }
}
