/* Hollow House free demo: email gate (copied in by make-demo.sh; see demo-gate.js). */
html.hh-locked #loader .t-name, html.hh-locked #loader .t-go { display: none !important; }
html:not(.hh-locked) #hhgate, #hook[hidden] ~ #hhgate { display: none !important; }
html:not(.hh-teacher) .hh-classbtn { display: none !important; }
.hh-gate [hidden], .hh-share[hidden] { display: none !important; }
.hh-gate, .hh-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#loader .hh-gate .namelabel { margin-top: 0; }
.hh-pick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hh-role { min-height: 52px; padding: 0 22px; font: 700 16px var(--body); color: var(--bone); background: rgba(8,10,24,.82); border: 1px solid var(--ember); border-radius: 3px; cursor: pointer; }
.hh-role:hover, .hh-role:focus-visible { background: rgba(42,21,32,.95); outline: 3px solid var(--candle); outline-offset: 2px; }
#loader .hh-gate .fine { background: rgba(7,9,22,.78); padding: 6px 12px; border-radius: 6px; text-align: center; color: #d8d0ea; opacity: 1; }
#loader .hh-gate .fine a { color: var(--candle); }
.hh-error { margin: 0; min-height: 0; color: #ffb4a8; font-weight: 700; text-shadow: 0 1px 6px #000; }
.hh-error:empty { display: none; }
#loader .hh-back, #loader .hh-classbtn { color: #e9e1ff; text-shadow: 0 1px 6px #000; }
.hh-share .confirm-card { width: min(520px, 100%); }
.hh-share h2 { font-family: var(--display); margin: 6px 0 8px; }
.hh-link { width: 100%; min-height: 48px; padding: 0 12px; font: 600 15px var(--body); color: var(--paper-ink); background: #fff; border: 1px solid rgba(42,33,23,.35); border-radius: 3px; text-align: center; }
.hh-code b { letter-spacing: .12em; }
@media (min-width: 900px) and (orientation: landscape) { .hh-gate { gap: 6px; } }
@media (orientation: landscape) and (max-height: 560px) {
  .hh-gate, .hh-step { gap: 4px; } .hh-role { min-height: 44px; padding: 0 14px; font-size: 14px; }
  #loader .hh-gate .fine { font-size: 11px; padding: 3px 8px; max-width: 40ch; } #loader .hh-gate .namein { width: min(260px, 32vw); min-height: 44px; }
}
@media (max-height: 560px) { /* a phone held sideways: the whole class link card fits without scrolling */
  .hh-share .confirm-card { padding: 10px 16px; } .hh-share h2 { font-size: 18px; margin: 0 0 4px; }
  .hh-share p { margin: 4px 0; font-size: 13px; } .hh-link { min-height: 38px; } .hh-share .end-actions { margin-top: 6px; }
}
.hh-share .case-no { color: var(--red); font-family: var(--type); letter-spacing: .22em; font-size: 12px; margin: 0; }
/* Teacher form (name, email, subject) and the Facebook screen: the same on every demo (2026-11-13). */
#loader .hh-gate select.hh-subject { color: var(--paper-ink, #2a2117); font-size: 16px; }
.hh-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 4px; text-align: left; }
.hh-half { border: 1px solid rgba(42,33,23,.3); border-radius: 4px; padding: 12px 14px; }
.hh-half h3 { margin: 0 0 6px; font-family: var(--display); font-size: 18px; }
.hh-half p { margin: 0 0 10px; }
.hh-half .fine { margin: 10px 0 0; }
.hh-fbbtn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.hh-tpt { font-weight: 700; color: inherit; text-underline-offset: 3px; }
.hh-fb .end-actions { align-items: center; }
.hh-fb .hh-why { margin: 0; }
.hh-fb .tool:disabled { opacity: .5; cursor: default; }
.hh-fb .confirm-card { width: min(640px, 100%); max-height: 100%; overflow-y: auto; }
@media (max-width: 640px) { .hh-halves { grid-template-columns: 1fr; } }
