/* Behavioral Economics. All rules scoped under .bhe-* (the app inlines only this file). */

/* 0, 2. the form and the 100 people */
.bhe-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px 12px; }
.bhe-form { position: relative; width: min(100%, 320px); margin-top: 10px; padding: 12px 14px 14px; border-radius: 14px; background: #f4efe4; color: #1d1b26; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: bheDrop .55s cubic-bezier(.3,1.3,.5,1) backwards; }
@keyframes bheDrop { from { opacity: 0; transform: translateY(-24px) rotate(-3deg); } }
.bhe-flag { font: 800 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #6b6577; margin-bottom: 8px; }
.bhe-q { display: flex; align-items: center; gap: 12px; }
.bhe-box { all: unset; position: relative; flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bhe-box::before { content: ""; width: 30px; height: 30px; border-radius: 7px; border: 3px solid #3b3748; background: #fff; box-sizing: border-box; }
.bhe-box i { position: absolute; left: 13px; top: 8px; width: 11px; height: 20px; border: solid #1f9c6a; border-width: 0 5px 5px 0; transform: rotate(40deg) scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.bhe-form.on .bhe-box i { transform: rotate(40deg) scale(1); }
.bhe-ask { font: 700 17px/1.25 var(--sans); }
.bhe-grid { display: grid; grid-template-columns: repeat(10, 22px); gap: 4px 6px; justify-content: center; }
.bhe-p { display: block; width: 22px; height: 26px; animation: bheIn .35s ease-out backwards; transition: filter .25s, transform .25s, opacity .25s; opacity: .55; }
.bhe-p img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bhe-p.yes { opacity: 1; transform: translateY(-2px); filter: sepia(1) saturate(6) hue-rotate(95deg) brightness(1.05) drop-shadow(0 0 3px rgba(63,214,154,.6)); }
.bhe-stage { transition: opacity .3s, transform .3s; }
.bhe-stage.bhe-small .bhe-grid { grid-template-columns: repeat(10, 12px); gap: 2px 4px; }
.bhe-stage.bhe-small .bhe-p { width: 12px; height: 14px; }
.bhe-stage.bhe-away { opacity: 0; transform: scale(.94); }
/* 1. Germany beside Austria */
.bhe-cmp { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; padding: 8px 14px; animation: bheIn .45s ease-out backwards; }
.bhe-cmp .bhe-note { grid-column: 1 / -1; }
.bhe-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bhe-side > b { font: 800 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.bhe-side:first-child { animation: bheSlide .6s cubic-bezier(.3,1.2,.5,1) backwards; }
@keyframes bheSlide { from { opacity: 0; transform: translateX(-60px); } }
.bhe-mgrid { display: grid; grid-template-columns: repeat(10, 13px); gap: 2px 2px; }
.bhe-mgrid .bhe-p { width: 13px; height: 16px; animation: none; }
.bhe-mc { font: 800 22px var(--sans); color: var(--mint); font-variant-numeric: tabular-nums; }
@keyframes bheIn { from { opacity: 0; transform: translateY(6px); } }
.bhe-count { display: flex; align-items: baseline; gap: 8px; font: 700 16px var(--sans); color: var(--dim); opacity: 0; transition: opacity .3s; }
.bhe-stage.out .bhe-count { opacity: 1; }
.bhe-count b { font: 800 28px var(--sans); color: var(--mint); font-variant-numeric: tabular-nums; }
.bhe-note { font: 600 14px var(--sans); color: var(--dim); text-align: center; animation: bheIn .4s ease-out backwards; }
@media (max-height: 700px) {
  .bhe-stage { gap: 8px; padding-top: 2px; }
  .bhe-form { padding: 8px 12px 10px; }
  .bhe-flag { margin-bottom: 2px; }
  .bhe-grid { grid-template-columns: repeat(10, 18px); gap: 2px 6px; }
  .bhe-p { width: 18px; height: 21px; }
  .bhe-mgrid { grid-template-columns: repeat(10, 12px); }
  .bhe-mgrid .bhe-p { width: 12px; height: 14px; }
  .bhe-count b { font-size: 24px; }
}

/* 1. the Econ */
.bhe-econ { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bhe-econ img { width: 170px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.5)); animation: bheDrop .6s cubic-bezier(.3,1.3,.5,1) backwards; }
.bhe-econ span { font: 800 15px var(--sans); color: var(--gold); }
@media (max-height: 700px) { .bhe-econ img { width: 120px; } }

/* 4. the two savings forms */
.bhe-office { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 800 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.bhe-office img { width: 150px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
@media (max-height: 700px) { .bhe-office img { width: 110px; } }
.choices.bhe-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.bhe-forms .choice { padding: 10px; min-height: 120px; }
.bhe-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 10px; border-radius: 10px; background: #f4efe4; color: #1d1b26; text-align: left; box-sizing: border-box; }
.bhe-mini span { font: 700 15px/1.25 var(--sans); }
.bhe-mbox { position: relative; display: block; width: 26px; height: 26px; border-radius: 6px; border: 3px solid #3b3748; background: #fff; box-sizing: border-box; }
.bhe-mini.on .bhe-mbox i { position: absolute; left: 6px; top: 0; width: 7px; height: 14px; border: solid #1f9c6a; border-width: 0 4px 4px 0; transform: rotate(40deg); }

/* 6. sort cards */
.bhe-card { padding: 18px 18px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line-strong); font: 700 19px/1.3 var(--sans); color: var(--text); text-align: center; max-width: 320px; margin: 0 auto; }
.bhe-card.right { border-color: var(--mint); }
.bhe-card.wrong { border-color: var(--red); }
.bhe-why { margin-top: 10px; font: 600 15px/1.35 var(--sans); color: var(--dim); }
.bhe-why b { color: var(--text); }
