/* ==========================================================================
   Eagles Quiz Night: the big screen (the host's laptop on the projector) and
   the players' phones. The Order's navy, gold and cream; the answers are
   lettered A to D in four Eagles colours. Its own look, from no other game.
   ========================================================================== */

:root {
  color-scheme: dark;
  --q-night: #04123A;
  --q-navy-1: #061A4A;
  --q-navy-2: #0A2A6E;
  --q-gold: #E9BE55;
  --q-gold-deep: #8C6412;
  --q-cream: #FBF8F0;
  --q-right: #2FBF6E;
  --q-metal: linear-gradient(180deg, #FFF6CF 0%, #F7D775 24%, #D6A232 50%, #A9771A 58%, #EBC45C 76%, #FFF0B5 90%, #B8862B 100%);
  --q-silver: linear-gradient(180deg, #FFFFFF 0%, #E3E8EF 28%, #AEB8C6 52%, #8B97A8 58%, #D7DEE8 78%, #F4F7FA 90%, #9AA6B6 100%);
  --q-bronze: linear-gradient(180deg, #FFE4C8 0%, #EDB385 26%, #C27A43 52%, #9A5A2A 58%, #D99A66 78%, #F6CFA7 90%, #A8673A 100%);
  --q-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --q-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }

/* the night sky, with a scatter of stars */
.eq {
  position: relative; min-height: 100vh; color: #fff; font-family: var(--q-sans);
  -webkit-font-smoothing: antialiased; background-color: var(--q-navy-1);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(233, 190, 85, .2), transparent 70%),
    radial-gradient(ellipse 55% 65% at 105% 105%, rgba(29, 102, 201, .38), transparent 70%),
    radial-gradient(ellipse 50% 60% at -5% 105%, rgba(29, 102, 201, .26), transparent 70%),
    linear-gradient(180deg, var(--q-night) 0%, var(--q-navy-1) 45%, var(--q-navy-2) 100%);
}
.eq::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, .85) 0 1px, transparent 1.7px),
    radial-gradient(circle at 24% 66%, rgba(255, 236, 180, .8) 0 1px, transparent 1.7px),
    radial-gradient(circle at 39% 27%, rgba(255, 255, 255, .55) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 53% 84%, rgba(255, 255, 255, .7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 68% 10%, rgba(255, 236, 180, .9) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 82% 49%, rgba(255, 255, 255, .55) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 94% 77%, rgba(255, 255, 255, .75) 0 1px, transparent 1.7px),
    radial-gradient(circle at 16% 93%, rgba(255, 236, 180, .65) 0 .9px, transparent 1.5px),
    radial-gradient(circle at 31% 41%, rgba(255, 255, 255, .5) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 74% 71%, rgba(255, 236, 180, .6) 0 .9px, transparent 1.5px),
    radial-gradient(circle at 61% 37%, rgba(255, 255, 255, .45) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 89% 21%, rgba(255, 255, 255, .7) 0 1px, transparent 1.7px);
  background-size: 380px 320px, 380px 320px, 380px 320px, 380px 320px, 380px 320px, 380px 320px,
    380px 320px, 380px 320px, 560px 470px, 560px 470px, 560px 470px, 560px 470px;
}

/* the name, as a small mark and as a big lockup */
.eq-brand { display: flex; align-items: center; gap: .65em; min-width: 0; }
.eq-brand img { flex: none; width: 2.4em; height: auto; filter: drop-shadow(0 .15em .35em rgba(0, 0, 0, .45)); }
.eq-word { font-family: var(--q-display); font-size: 1.3em; font-weight: 700; line-height: 1; white-space: nowrap; }
.eq-word b { font-weight: 700; color: var(--q-gold); }
.eq-title { margin: 0; font-family: var(--q-display); font-weight: 700; line-height: .92; }
.eq-title small {
  display: block; margin: 0 0 .34em .08em; font-family: var(--q-sans); font-size: .2em; font-weight: 800;
  letter-spacing: .55em; text-transform: uppercase; color: var(--q-gold);
}
.eq-title em {
  font-style: italic; padding-right: .08em;
  background: var(--q-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* a parol, hung from the top of the screen */
.eq-parol { position: absolute; top: 0; z-index: 0; height: auto; pointer-events: none; filter: drop-shadow(0 0 1.1rem rgba(255, 210, 110, .45)); }

/* the four answers, lettered A to D: gold, blue, cream and navy */
.eq-choices { list-style: none; margin: 0; padding: 0; display: grid; }
.eq-choices > li { display: flex; min-width: 0; }
.eq-choice {
  position: relative; display: flex; align-items: center; gap: .55em; width: 100%; margin: 0;
  border: 0; text-align: left; font-weight: 800; line-height: 1.15;
}
.eq-letter {
  flex: none; display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%;
  font-family: var(--q-display); font-size: 1em; font-weight: 700; line-height: 1;
}
.eq-text { min-width: 0; overflow-wrap: anywhere; }
.eq-choice--a { color: var(--q-navy-1); background: linear-gradient(180deg, #FAE08F 0%, #E9BB4D 55%, #D9A63A 100%); }
.eq-choice--a .eq-letter { color: #F7D775; background: var(--q-navy-1); }
.eq-choice--b { color: #fff; background: linear-gradient(180deg, #3584E6 0%, #1D62C4 55%, #1852A6 100%); }
.eq-choice--b .eq-letter { color: #1852A6; background: #fff; }
.eq-choice--c { color: var(--q-navy-1); background: linear-gradient(180deg, #FFFFFF 0%, #F6F0E2 55%, #EAE0C8 100%); }
.eq-choice--c .eq-letter { color: #fff; background: var(--q-navy-2); }
.eq-choice--d { color: #fff; background: linear-gradient(180deg, #16418F 0%, #0D3179 55%, #0A2A6E 100%); }
.eq-choice--d .eq-letter { color: var(--q-navy-1); background: var(--q-metal); }

/* after the time is up: the right one stays lit, with how many chose each */
.eq-choices.is-revealed .eq-choice:not(.is-right) { opacity: .3; filter: saturate(.5); }
.eq-mark {
  flex: none; display: inline-flex; align-items: center; gap: .35em; margin-left: auto;
  padding: .28em .8em .28em .5em; border-radius: 999px; font-size: .62em; font-weight: 850;
  background: rgba(6, 26, 74, .14);
}
.eq-choice--b .eq-mark, .eq-choice--d .eq-mark { background: rgba(255, 255, 255, .16); }
.eq-mark svg { width: 1.15em; height: 1.15em; }
.eq-choice.is-right .eq-mark { color: #fff; background: var(--q-right); }

/* --- the big screen ---------------------------------------------------------------------------- */

.eqb-html { font-size: 1.85vmin; }
.eqb { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.eqb-top {
  position: relative; z-index: 2; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1.5rem; padding: 1rem 2.2rem; border-bottom: 1px solid rgba(233, 190, 85, .22);
  background: linear-gradient(180deg, rgba(4, 18, 58, .75), rgba(4, 18, 58, .2));
}
.eqb-top .eq-brand { font-size: 1.15rem; }
.eqb-top__mid { font-size: 1.05rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.eqb-top__right { display: flex; justify-content: flex-end; gap: .7rem; }
.eq-chip {
  display: inline-flex; align-items: baseline; gap: .4em; padding: .42em 1em; border-radius: 999px; white-space: nowrap;
  font-size: 1rem; font-weight: 650; color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(233, 190, 85, .42);
}
.eq-chip b { font-size: 1.2em; font-weight: 850; color: #fff; letter-spacing: .02em; }
.eqb-main { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; padding: 1.6rem 2.8rem 1.4rem; }
.eqb-main > section { height: 100%; }
.eqb-bar {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 1rem; padding: .75rem 2.2rem;
  font-size: 1rem; color: rgba(255, 255, 255, .62);
  background: rgba(4, 18, 58, .6); border-top: 1px solid rgba(255, 255, 255, .07);
}
.eqb-bar .spacer { flex: 1 1 auto; }
.eqb-btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .62em 1.5em; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 1.15rem; font-weight: 850; letter-spacing: .02em; color: var(--q-navy-1); background: var(--q-metal);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.eqb-btn--ghost { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.eqb-key {
  display: inline-grid; place-items: center; min-width: 1.7em; padding: .08em .5em; border-radius: .35em;
  border: 1px solid rgba(255, 255, 255, .3); font-size: .85em; font-weight: 700; color: rgba(255, 255, 255, .8);
}

/* waiting for players */
.eqb-lobby { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 3.4rem; align-items: center; }
.eqb-qr {
  margin: 0; padding: 1.5rem 1.5rem 1.1rem; border-radius: 1.6rem; text-align: center; color: var(--q-navy-1); background: #fff;
  box-shadow: 0 0 0 .45rem rgba(233, 190, 85, .6), 0 1.6rem 3.2rem rgba(0, 0, 0, .5);
}
.eqb-qr svg { width: 100%; height: auto; }
.eqb-qr b { display: block; margin-top: .85rem; font-size: 1.75rem; font-weight: 900; }
.eqb-qr span { display: block; margin-top: .1rem; font-size: 1rem; font-weight: 600; color: #56607A; }
.eqb-join { position: relative; z-index: 1; }
.eqb-join .eq-title { font-size: 6rem; }
.eqb-org { margin: .9rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.eqb-how { margin: 1.7rem 0 .8rem; font-size: 1.5rem; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.eqb-how b { font-weight: 850; color: #fff; }
.eqb-code { display: flex; gap: .7rem; }
.eqb-code span {
  display: grid; place-items: center; width: 5rem; height: 6rem; border-radius: 1rem;
  font-family: var(--q-display); font-size: 4.3rem; font-weight: 700; color: var(--q-navy-1); background: var(--q-metal);
  box-shadow: inset 0 0 0 .18rem rgba(255, 255, 255, .45), 0 .6rem 1.4rem rgba(0, 0, 0, .4);
}
.eqb-players { margin-top: 1.9rem; }
.eqb-players h2 {
  display: flex; align-items: baseline; gap: .45em; margin: 0 0 .8rem; font-size: 1.2rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--q-gold);
}
.eqb-players h2 b { font-family: var(--q-display); font-size: 2.3rem; letter-spacing: 0; color: #fff; }
.eqb-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem .6rem; max-height: 10.9rem; overflow: hidden; }
.eqb-names li {
  padding: .42rem .95rem; border-radius: 999px; white-space: nowrap; font-size: 1.08rem; font-weight: 750;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .15);
}
.eqb-names small { margin-left: .5em; font-size: .8em; font-weight: 600; color: var(--q-gold); }
.eqb-names li.is-new { background: rgba(233, 190, 85, .18); border-color: rgba(233, 190, 85, .85); }
.eqb-names li.eqb-more { color: rgba(255, 255, 255, .72); background: none; border-style: dashed; }

/* a question */
.eqb-q { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 1.3rem; }
.eqb-qcard {
  position: relative; padding: 1.4rem 2.4rem 1.6rem; border-radius: 1.4rem; color: var(--q-navy-1); background: var(--q-cream);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35);
}
.eqb-qcard::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: .45rem; border-radius: 0 .45rem .45rem 0; background: var(--q-metal); }
.eqb-qcard p { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--q-gold-deep); }
.eqb-qcard h1 { margin: 0; font-family: var(--q-display); font-size: 3.5rem; font-weight: 700; line-height: 1.14; text-wrap: balance; }
.eqb-timer { display: flex; align-items: center; gap: 1.1rem; min-height: 4.6rem; }
.eqb-timer__n {
  flex: none; display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%;
  font-size: 2.3rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--q-navy-1); background: var(--q-metal);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .35);
}
.eqb-timer__bar { flex: 1 1 auto; height: 1rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.eqb-timer__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #C8922A, #F7D775 70%, #FFF0B5); }
.eqb-timer__left { flex: none; font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, .7); }
.eqb-said { font-size: 1.7rem; font-weight: 650; color: rgba(255, 255, 255, .85); }
.eqb-said b { color: #fff; font-weight: 850; }
.eqb-said .eqb-right { display: inline-flex; align-items: center; gap: .35em; margin-right: .5em; padding: .15em .7em .15em .4em; border-radius: 999px; font-size: .8em; color: #fff; background: var(--q-right); }
.eqb-said .eqb-right svg { width: 1.2em; height: 1.2em; }
.eqb-choices { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 1.2rem; min-height: 0; }
.eqb-choices .eq-choice { padding: 1rem 1.6rem; border-radius: 1.3rem; font-size: 2.35rem; box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .32); }
.eqb-choices .eq-choice--d { box-shadow: inset 0 0 0 .3rem #E3B54B, 0 .6rem 1.4rem rgba(0, 0, 0, .32); }
.eqb-choices .eq-choice.is-right { box-shadow: 0 0 0 .3rem #fff, 0 0 0 .8rem rgba(47, 191, 110, .7), 0 1rem 2.6rem rgba(0, 0, 0, .45); }

/* the top five */
.eqb-board-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.eqb-h1 { margin: 0 0 1.5rem; text-align: center; font-family: var(--q-display); font-size: 3.4rem; font-weight: 700; line-height: 1.05; }
.eqb-h1 small { display: block; margin-bottom: .5rem; font-family: var(--q-sans); font-size: .33em; font-weight: 850; letter-spacing: .3em; text-transform: uppercase; color: var(--q-gold); }
.eqb-board { list-style: none; margin: 0; padding: 0; width: min(76rem, 100%); display: grid; gap: .85rem; }
.eqb-board li {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto 10rem; align-items: center; gap: 1.4rem;
  padding: .9rem 1.8rem .9rem 1.1rem; border-radius: 1.2rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.eqb-board li.is-1 { background: rgba(255, 255, 255, .11); border: 2px solid rgba(233, 190, 85, .9); box-shadow: 0 0 2.2rem rgba(233, 190, 85, .22); }
.eqb-rank {
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  font-family: var(--q-display); font-size: 2rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1);
}
.is-1 > .eqb-rank { color: var(--q-navy-1); background: var(--q-metal); }
.is-2 > .eqb-rank { color: var(--q-navy-1); background: var(--q-silver); }
.is-3 > .eqb-rank { color: #3B1F0A; background: var(--q-bronze); }
.eqb-who { min-width: 0; }
.eqb-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 2.1rem; font-weight: 850; line-height: 1.12; }
.eqb-who small { display: block; margin-top: .15rem; font-size: 1.1rem; font-weight: 650; color: var(--q-gold); }
.eqb-gain { font-size: 1.3rem; font-weight: 800; white-space: nowrap; color: #8BE7B2; }
.eqb-gain--none { color: rgba(255, 255, 255, .45); }
.eqb-move { margin-left: .6em; font-size: .85em; }
.eqb-move--up { color: #8BE7B2; }
.eqb-move--down { color: rgba(255, 255, 255, .5); }
.eqb-pts { text-align: right; font-size: 2.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* the winners */
.eqb-win { display: flex; flex-direction: column; align-items: center; }
.eqb-main:has(> .eqb-win:not([hidden])) { padding-top: 1rem; padding-bottom: 0; }
.eqb-win .eqb-h1 { margin-bottom: .6rem; font-size: 3.6rem; }
.eqb-podium {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; width: min(84rem, 100%);
  display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 1.8rem;
}
.eqb-place { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.eqb-medal {
  display: grid; place-items: center; width: 5.2rem; height: 5.2rem; margin-bottom: .8rem; border-radius: 50%;
  font-family: var(--q-display); font-size: 2.2rem; font-weight: 700; color: var(--q-navy-1);
  box-shadow: inset 0 0 0 .28rem rgba(255, 255, 255, .45), 0 .7rem 1.4rem rgba(0, 0, 0, .45);
}
.eqb-place--1 .eqb-medal { width: 6.4rem; height: 6.4rem; font-size: 2.8rem; background: var(--q-metal); }
.eqb-place--2 .eqb-medal { background: var(--q-silver); }
.eqb-place--3 .eqb-medal { color: #3B1F0A; background: var(--q-bronze); }
.eqb-pname { margin: 0; font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.eqb-place--1 .eqb-pname { font-size: 2.7rem; }
.eqb-pclub { margin: .3rem 0 0; font-size: 1.15rem; font-weight: 650; color: var(--q-gold); }
.eqb-ppts { margin: .3rem 0 0; font-size: 1.3rem; font-weight: 750; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.eqb-prize {
  display: inline-flex; align-items: center; gap: .45em; margin-top: .7rem; padding: .42rem 1.1rem; border-radius: 999px;
  font-size: 1.15rem; font-weight: 800; color: #FBE7A8; background: rgba(233, 190, 85, .14); border: 1px solid rgba(233, 190, 85, .55);
}
.eqb-prize svg { width: 1.2em; height: 1.2em; }
.eqb-plinth {
  width: 100%; margin-top: 1rem; padding-top: .6rem; border-radius: 1.1rem 1.1rem 0 0; text-align: center;
  font-family: var(--q-display); font-size: 3.4rem; font-weight: 700; color: rgba(6, 26, 74, .7);
  box-shadow: inset 0 .3rem 0 rgba(255, 255, 255, .45);
}
.eqb-place--1 .eqb-plinth { height: 10.5rem; background: var(--q-metal); }
.eqb-place--2 .eqb-plinth { height: 7.6rem; background: var(--q-silver); }
.eqb-place--3 .eqb-plinth { height: 5.6rem; color: rgba(59, 31, 10, .72); background: var(--q-bronze); }
.eqb-runners { position: relative; z-index: 1; list-style: none; margin: 0; padding: 1rem 0 1.2rem; display: flex; gap: 1.2rem; width: min(84rem, 100%); border-top: .3rem solid rgba(233, 190, 85, .5); }
.eqb-runners li {
  flex: 1 1 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: .75rem 1.2rem; border-radius: 1rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
}
.eqb-runners .eqb-rank { width: 3rem; height: 3rem; font-size: 1.45rem; }
.eqb-runners b { display: block; font-size: 1.5rem; font-weight: 850; }
.eqb-runners small { display: block; font-size: 1rem; font-weight: 650; color: var(--q-gold); }
.eqb-runners .eqb-prize { margin: 0; font-size: 1rem; }
.eqb-confetti { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.eqb-win > :not(.eqb-confetti):not(.eq-parol) { position: relative; z-index: 1; }
.eqb-confetti i { position: absolute; top: -2rem; display: block; width: .55rem; height: 1.1rem; border-radius: .12rem; opacity: .9; animation: eqfall linear infinite; }
@keyframes eqfall {
  0% { transform: translate3d(0, -3vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .95; }
  100% { transform: translate3d(var(--drift, 2rem), 105vh, 0) rotate(540deg); opacity: .9; }
}

/* --- the phone ------------------------------------------------------------------------------------ */

.eqp { font-size: 16px; }
.eqp-top {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem;
  background: rgba(4, 18, 58, .86); border-bottom: 1px solid rgba(233, 190, 85, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.eqp-top .eq-brand { font-size: .84rem; }
.eqp-me { margin-left: auto; text-align: right; font-size: .7rem; font-weight: 700; line-height: 1.25; color: rgba(255, 255, 255, .7); }
.eqp-me b { display: block; font-size: .92rem; color: #fff; }
.eqp-timer { position: sticky; top: 3.1rem; z-index: 3; height: 6px; background: rgba(255, 255, 255, .12); }
.eqp-timer i { display: block; height: 100%; background: linear-gradient(90deg, #C8922A, #F7D775); }
.eqp-main { position: relative; z-index: 1; max-width: 30rem; margin: 0 auto; padding: 1.1rem 1.1rem 2rem; }

/* joining */
.eqp-hero { text-align: center; padding: 1.4rem 0 .2rem; }
.eqp-hero img { width: 88px; height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 .5rem 1rem rgba(0, 0, 0, .45)); }
.eqp-hero .eq-title { font-size: 3.2rem; }
.eqp-hero p { margin: .6rem 0 0; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.eqp-card {
  margin-top: 1.4rem; padding: 1.15rem 1.05rem 1.2rem; border-radius: 1.2rem; color: var(--q-navy-1); background: var(--q-cream);
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .38);
}
.eqp-field { margin: 0 0 .9rem; }
.eqp-field label {
  display: block; margin: 0 0 .35rem; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--q-gold-deep);
}
.eqp-field label small { font-size: 1em; font-weight: 650; letter-spacing: .02em; text-transform: none; color: #7A6A44; }
.eqp-input {
  display: block; width: 100%; min-height: 3.05rem; padding: .65rem .85rem; border-radius: .75rem; border: 1.5px solid #DDD2B8;
  font-size: 1.05rem; font-weight: 600; color: var(--q-navy-1); background: #fff;
}
.eqp-input:focus { outline: none; border-color: #C8922A; box-shadow: 0 0 0 .2rem rgba(233, 190, 85, .35); }
.eqp-input--code { padding-left: 1.4rem; text-align: center; font-family: var(--q-display); font-size: 2rem; font-weight: 700; letter-spacing: .55em; }
select.eqp-input {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6412' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 1.05rem;
}
.eqp-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 3.4rem; margin-top: .3rem; border: 0; border-radius: 999px;
  font-size: 1.1rem; font-weight: 900; letter-spacing: .02em; color: var(--q-navy-1); background: var(--q-metal); cursor: pointer;
  box-shadow: 0 .5rem 1.2rem rgba(140, 100, 18, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.eqp-fine { margin: .85rem 0 0; text-align: center; font-size: .78rem; line-height: 1.45; color: #5E6782; }

/* answering */
.eqp-qhead { display: flex; align-items: center; justify-content: space-between; margin: .1rem 0 .55rem; font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--q-gold); }
.eqp-qhead b {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.05rem; letter-spacing: 0;
  color: var(--q-navy-1); background: var(--q-metal);
}
.eqp-q { margin: 0 0 1.2rem; font-family: var(--q-display); font-size: 1.5rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.eqp-choices { gap: .8rem; }
.eqp-choices .eq-choice {
  min-height: 5.4rem; padding: .9rem 1.05rem; border-radius: 1.05rem; font-size: 1.22rem; cursor: pointer;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .3);
}
.eqp-choices .eq-choice--d, .eqp-mine.eq-choice--d { box-shadow: inset 0 0 0 2.5px #E3B54B, 0 .35rem .9rem rgba(0, 0, 0, .3); }
.eqp-tip { margin: 1.1rem 0 0; text-align: center; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .62); text-wrap: balance; }

/* waiting, a result, the final place */
.eqp-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 8rem); text-align: center; padding: 1rem 0 2.5rem; }
.eqp-badge { display: grid; place-items: center; width: 7.2rem; height: 7.2rem; margin-bottom: 1.3rem; border-radius: 50%; }
.eqp-badge svg { width: 3.3rem; height: 3.3rem; }
.eqp-badge--wait { color: var(--q-gold); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 .55rem rgba(233, 190, 85, .14), inset 0 0 0 2px rgba(233, 190, 85, .65); }
.eqp-badge--right { color: #fff; background: radial-gradient(circle at 50% 35%, #4ADB8B, #1E9E57); box-shadow: 0 0 0 .6rem rgba(47, 191, 110, .22), 0 .8rem 2rem rgba(0, 0, 0, .4); }
.eqp-state h1 { margin: 0; font-family: var(--q-display); font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.eqp-plus {
  margin: .45rem 0 0; font-family: var(--q-display); font-size: 2.7rem; font-weight: 700;
  background: var(--q-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eqp-mine { margin-top: 1.3rem; padding: .85rem 1rem; border-radius: 1rem; font-size: 1.1rem; box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .3); }
.eqp-stand { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; margin-top: 1.5rem; }
.eqp-stand div { padding: .85rem .6rem; border-radius: 1rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.eqp-stand b { display: block; font-family: var(--q-display); font-size: 1.95rem; font-weight: 700; }
.eqp-stand span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--q-gold); }
.eqp-note { margin: 1.3rem 0 0; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.eqp-count { margin: .6rem 0 0; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .55); }
.eqp-medal {
  display: grid; place-items: center; width: 7.4rem; height: 7.4rem; margin-bottom: 1.1rem; border-radius: 50%;
  font-family: var(--q-display); font-size: 3.4rem; font-weight: 700; color: var(--q-navy-1); background: var(--q-silver);
  box-shadow: inset 0 0 0 .35rem rgba(255, 255, 255, .5), 0 0 0 .6rem rgba(255, 255, 255, .08), 0 .9rem 2rem rgba(0, 0, 0, .45);
}
.eqp-kicker { margin: 0 0 .3rem; font-size: .74rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: var(--q-gold); }
.eqp-sub { margin: .5rem 0 0; font-size: .95rem; font-weight: 650; color: rgba(255, 255, 255, .8); }
.eqp-prize {
  display: flex; align-items: center; gap: .8rem; width: 100%; margin-top: 1.4rem; padding: .95rem 1.1rem; border-radius: 1rem; text-align: left;
  color: var(--q-navy-1); background: var(--q-cream); box-shadow: 0 .8rem 1.8rem rgba(0, 0, 0, .35);
}
.eqp-prize svg { flex: none; width: 2.2rem; height: 2.2rem; color: var(--q-gold-deep); }
.eqp-prize small { display: block; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--q-gold-deep); }
.eqp-prize b { display: block; font-size: 1.25rem; font-weight: 900; }

/* registered at the door: the party pass, and what happens next */
.eqp-pass { width: 100%; margin-top: 1.3rem; overflow: hidden; border-radius: 1.2rem; text-align: left; color: var(--q-navy-1); background: var(--q-cream); box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .4); }
.eqp-pass__head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; color: #fff; background: linear-gradient(180deg, #0D3179, var(--q-navy-1)); border-bottom: 3px solid #E3B54B; }
.eqp-pass__head img { width: 34px; height: auto; }
.eqp-pass__head small { display: block; font-size: .64rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: var(--q-gold); }
.eqp-pass__head b { display: block; font-size: 1.05rem; font-weight: 850; }
.eqp-pass__no { margin-left: auto; text-align: right; font-family: var(--q-display); font-size: 2.2rem; font-weight: 700; line-height: 1; background: var(--q-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eqp-pass__no small { display: block; margin-bottom: .15rem; font-family: var(--q-sans); font-size: .6rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eqp-pass__body { padding: .95rem 1rem 1.05rem; }
.eqp-pass__body b { display: block; font-family: var(--q-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.eqp-pass__body span { display: block; margin-top: .2rem; font-size: .88rem; font-weight: 650; color: #56607A; }
.eqp-pass__body .eqp-pass__club { color: var(--q-gold-deep); }
.eqp-next { display: flex; gap: .8rem; width: 100%; margin-top: 1rem; padding: .95rem 1rem; border-radius: 1rem; text-align: left; background: rgba(255, 255, 255, .07); border: 1px solid rgba(233, 190, 85, .35); }
.eqp-next svg { flex: none; width: 1.9rem; height: 1.9rem; color: var(--q-gold); }
.eqp-next b { display: block; font-size: .98rem; font-weight: 850; }
.eqp-next span { display: block; margin-top: .25rem; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .75); }

/* --- the entrance sign, printed on A4: one QR for registering and for the quiz -------------------- */

@page { size: A4; margin: 0; }
.eqs { margin: 0; color: var(--q-navy-1); background: #fff; font-family: var(--q-sans); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.eqs-sheet { position: relative; display: flex; flex-direction: column; width: 210mm; height: 297mm; overflow: hidden; }
.eqs-band { position: relative; padding: 10mm 16mm 10mm; text-align: center; color: #fff; background: linear-gradient(180deg, var(--q-night), var(--q-navy-2)); }
.eqs-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6mm; background: var(--q-metal); }
.eqs-band img { width: 21mm; height: auto; margin: 0 auto 3.5mm; }
.eqs-band small { display: block; font-size: 3.6mm; font-weight: 800; letter-spacing: .5em; text-transform: uppercase; color: var(--q-gold); }
.eqs-band h1 { margin: 2mm 0 0; font-family: var(--q-display); font-size: 14mm; font-weight: 700; line-height: 1; }
.eqs-band h1 em { font-style: italic; padding-right: .06em; background: var(--q-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eqs-band p { margin: 3mm 0 0; font-size: 4.2mm; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.eqs-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding: 8mm 16mm 0; text-align: center; }
.eqs-body h2 { margin: 0; font-family: var(--q-display); font-size: 12.5mm; font-weight: 700; line-height: 1; }
.eqs-qr { width: 98mm; margin: 6mm auto 0; padding: 5mm; border-radius: 6mm; border: 1.6mm solid #E3B54B; background: #fff; }
.eqs-qr svg { width: 100%; height: auto; }
.eqs-how { margin: 6mm 0 0; font-size: 4.6mm; line-height: 1.45; color: #2C3A63; }
.eqs-how b { color: var(--q-navy-1); }
.eqs-code { display: flex; justify-content: center; gap: 2.4mm; margin-top: 3mm; }
.eqs-code span { display: grid; place-items: center; width: 12mm; height: 15mm; border-radius: 2.4mm; font-family: var(--q-display); font-size: 10mm; font-weight: 700; color: var(--q-navy-1); background: var(--q-metal); }
.eqs-notes { list-style: none; margin: 7mm 0 0; padding: 0; display: grid; gap: 2.4mm; font-size: 4.3mm; line-height: 1.35; color: #2C3A63; }
.eqs-notes li::before { content: "\2605"; margin-right: 2mm; color: #C8922A; }
.eqs-foot { margin: 0 16mm; padding: 5mm 0 8mm; border-top: .5mm solid #EADFC4; text-align: center; font-size: 3.3mm; color: #56607A; }
.eqs-foot b { display: block; font-size: 3.5mm; letter-spacing: .04em; color: var(--q-navy-1); }
.eqs-foot em { font-family: var(--q-display); color: var(--q-gold-deep); }

/* --- the front desk: the registrations, live, on the staff's laptop at the door ------------------- */

.eqd { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.eqd-top {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 1rem; padding: .75rem 1.4rem;
  background: rgba(4, 18, 58, .78); border-bottom: 1px solid rgba(233, 190, 85, .25);
}
.eqd-top .eq-brand { font-size: .95rem; }
.eqd-role { padding: .28rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--q-navy-1); background: var(--q-metal); }
.eqd-event { flex: 1 1 auto; text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.eqd-count { display: flex; align-items: baseline; gap: .45rem; font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.eqd-count b { font-family: var(--q-display); font-size: 2.1rem; line-height: 1; background: var(--q-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eqd-main { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 1.1rem; padding: 1.1rem 1.4rem; }
.eqd-card { min-height: 0; overflow: hidden; padding: .85rem 1rem; border-radius: 1rem; color: var(--q-navy-1); background: var(--q-cream); box-shadow: 0 .8rem 1.8rem rgba(0, 0, 0, .3); }
.eqd-card h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--q-gold-deep); }
.eqd-card h2 .eqd-live { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; letter-spacing: .08em; color: #1E9E57; }
.eqd-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #2FBF6E; box-shadow: 0 0 0 .2rem rgba(47, 191, 110, .25); }
.eqd-list { display: flex; flex-direction: column; overflow: hidden; }
.eqd-find { margin-bottom: .6rem; min-height: 2.6rem; font-size: .95rem; }
.eqd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.eqd-table th { padding: .4rem .55rem; text-align: left; font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: #7A6A44; border-bottom: 1.5px solid #E6DCC2; }
.eqd-table td { padding: .48rem .55rem; border-bottom: 1px solid #EEE6D2; white-space: nowrap; }
.eqd-table td.eqd-no { font-family: var(--q-display); font-weight: 700; color: var(--q-gold-deep); }
.eqd-table td b { font-weight: 800; }
.eqd-table tr.is-new td { background: #FFF2C6; }
.eqd-new { margin-left: .45rem; padding: .1rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #1E9E57; }
.eqd-how { color: #6B7280; font-size: .82rem; }
.eqd-x { padding: .2rem .6rem; border-radius: .5rem; border: 1px solid #DDD2B8; font-size: .75rem; font-weight: 700; color: #6B7280; background: #fff; }
/* on a short laptop screen the side column scrolls, its cards never squeezed */
.eqd-side { display: grid; gap: .9rem; align-content: start; grid-auto-rows: max-content; min-height: 0; overflow-y: auto; margin-right: -.4rem; padding-right: .4rem; }
.eqd-side .eqp-field { margin-bottom: .6rem; }
.eqd-side .eqp-input { min-height: 2.55rem; font-size: .92rem; }
.eqd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 2.75rem; border: 0; border-radius: 999px;
  font-size: .95rem; font-weight: 900; color: var(--q-navy-1); background: var(--q-metal); cursor: pointer;
  box-shadow: 0 .4rem 1rem rgba(140, 100, 18, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.eqd-btn svg { width: 1.2rem; height: 1.2rem; }
.eqd-btn--navy { color: #fff; background: linear-gradient(180deg, #16418F, var(--q-navy-1)); box-shadow: 0 .4rem 1rem rgba(6, 26, 74, .3); }
.eqd-clubs { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.eqd-clubs li { display: flex; justify-content: space-between; gap: .6rem; padding: .24rem 0; border-top: 1px solid #EEE6D2; }
.eqd-clubs li:first-child { border-top: 0; }
.eqd-clubs b { font-variant-numeric: tabular-nums; }
.eqd-note { margin: .55rem 0 0; font-size: .76rem; line-height: 1.45; color: #6B7280; }
.eqd-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .eqd-foot { position: relative; z-index: 2; flex: none; padding: .55rem 1.4rem; font-size: .78rem; color: rgba(255, 255, 255, .62); background: var(--q-night); border-top: 1px solid rgba(255, 255, 255, .08); }


/* --- the live pages ------------------------------------------------------------------------------------- */

/* the big screen */
.eqb-names li[data-id] { cursor: pointer; }
.eqb-names li[data-id]:hover { border-color: rgba(255, 140, 120, .9); background: rgba(255, 120, 100, .16); }
.eqb-names li.is-new { animation: eqpop .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes eqpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.eqb-lobby-empty { margin: 0; font-size: 1.2rem; color: rgba(255, 255, 255, .65); }
.eqb-timer.is-urgent .eqb-timer__n { color: #fff; background: radial-gradient(circle at 50% 35%, #FF8A6B, #D4452A); }
.eqb-timer.is-urgent .eqb-timer__bar i { background: linear-gradient(90deg, #D4452A, #FF9A7E); }
.eqb-offline { padding: .3rem .8rem; border-radius: 999px; font-weight: 800; color: var(--q-navy-1); background: #FFC9A8; }
.eqb-said .eqb-none { color: rgba(255, 255, 255, .7); }
.eqb-board-empty { margin: 0; text-align: center; font-size: 1.5rem; color: rgba(255, 255, 255, .7); }
.eqb-prize:empty { display: none; }
.eqb-btn:focus-visible { outline: .2rem solid #fff; outline-offset: .2rem; }
.eqb-choices .eq-text { font-size: var(--fit, 1em); }
/* an older 4:3 projector has no room beside the title for the lanterns */
@media (max-aspect-ratio: 3/2) { .eqb-main .eq-parol { display: none; } }

/* the phone: registering */
.eqp-party { font-size: 2.35rem; text-wrap: balance; }
.eqp-kinds { margin: 0 0 .9rem; padding: 0; border: 0; min-width: 0; }
.eqp-kinds legend { display: block; margin: 0 0 .4rem; padding: 0; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--q-gold-deep); }
.eqp-kinds .eqp-kind { display: block; position: relative; margin: 0 0 .45rem; cursor: pointer; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--q-navy-1); }
.eqp-kind input { position: absolute; opacity: 0; pointer-events: none; }
.eqp-kind span {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem .9rem .7rem 2.6rem; border-radius: .8rem; border: 1.5px solid #DDD2B8; background: #fff;
}
.eqp-kind span::before { content: ""; position: absolute; left: .85rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid #C9BB97; background: #fff; }
.eqp-kind b { font-size: 1rem; font-weight: 800; }
.eqp-kind small { font-size: .9rem; font-weight: 800; color: var(--q-gold-deep); white-space: nowrap; }
.eqp-kind input:checked + span { border-color: #C8922A; background: #FFF8E4; box-shadow: 0 0 0 .18rem rgba(233, 190, 85, .35); }
.eqp-kind input:checked + span::before { border-color: var(--q-navy-1); background: radial-gradient(circle, var(--q-navy-1) 0 42%, #fff 46%); }
.eqp-kind input:focus-visible + span { outline: 2px solid var(--q-navy-2); outline-offset: 2px; }
/* who came with you: a family registers together, each with their own number */
.eqf { margin: .2rem 0 .9rem; padding: .85rem .8rem .8rem; border-radius: 1rem; background: #F3ECDB; }
.eqf-head b { display: block; font-size: 1rem; font-weight: 850; color: var(--q-navy-1); }
.eqf-head span { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.4; color: #5E5640; }
.eqf-list { list-style: none; margin: .7rem 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.eqf-list:empty { margin: .2rem 0 .6rem; }
.eqf-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .55rem; align-items: center; padding: .5rem .55rem .55rem .6rem; border-radius: .8rem; background: #fff; }
.eqf-av { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: .74rem; font-weight: 900; color: #fff; }
.eqf-av--adult { background: var(--q-navy-2); }
.eqf-av--kid { background: #C8922A; }
.eqf-name {
  display: block; width: 100%; padding: .25rem .1rem .3rem; border: 0; border-bottom: 1.5px solid #E6DCC2; border-radius: 0;
  font: inherit; font-size: 1rem; font-weight: 750; color: var(--q-navy-1); background: transparent;
}
.eqf-name:focus { outline: none; border-bottom-color: #C8922A; }
.eqf-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin-top: .35rem; }
.eqf-seg { display: inline-flex; padding: .15rem; gap: .15rem; border-radius: .6rem; background: #F3ECDB; }
.eqf-seg button { min-height: 2rem; padding: .2rem .6rem; border: 0; border-radius: .45rem; font-size: .76rem; font-weight: 850; color: #8A7A55; background: none; cursor: pointer; white-space: nowrap; }
.eqf-seg button.is-on { color: #fff; background: var(--q-navy-1); }
.eqf-eagle { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 750; color: #6B5D3C; cursor: pointer; }
.eqf-eagle input { width: 1.05rem; height: 1.05rem; accent-color: var(--q-navy-1); color-scheme: light; }
.eqf-x { width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; font-size: 1.25rem; line-height: 1; color: #8C6412; background: #F3ECDB; cursor: pointer; }
.eqf-add { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.eqf-add button { min-height: 2.75rem; border: 1.5px dashed #C9BB97; border-radius: .75rem; font-size: .98rem; font-weight: 850; color: var(--q-navy-2); background: none; cursor: pointer; }
.eqf-total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .6rem; margin: 0 0 .8rem; padding: .7rem .9rem; border-radius: .85rem; background: var(--q-navy-1); color: #fff; }
.eqf-total span { font-size: .86rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.eqf-total b { grid-row: span 2; font-family: var(--q-display); font-size: 1.7rem; color: var(--q-gold); }
.eqf-total small { font-size: .74rem; color: rgba(255, 255, 255, .65); }
.eqp-errors { margin: 0 0 .8rem; padding: .65rem .85rem; border-radius: .75rem; font-size: .9rem; line-height: 1.45; color: #8A1C12; background: #FDE7E3; }
.eqp-errors p { margin: 0; }
.eqp-btn[disabled] { opacity: .6; cursor: progress; }
.eqp-offline { position: sticky; top: 3.6rem; z-index: 4; margin: 0 0 .8rem; padding: .55rem .9rem; border-radius: .8rem; text-align: center; font-size: .85rem; font-weight: 800; color: var(--q-navy-1); background: #FFC9A8; }

/* the phone: the pass and the fee */
.eqp-state--top { justify-content: flex-start; min-height: 0; padding-top: 1.2rem; }
.eqp-badge--sm { width: 5.2rem; height: 5.2rem; margin-bottom: 1rem; }
.eqp-badge--sm svg { width: 2.6rem; height: 2.6rem; }
.eqp-badge--wrong { color: #fff; background: radial-gradient(circle at 50% 35%, #7C8AA8, #48557A); box-shadow: 0 0 0 .6rem rgba(255, 255, 255, .08), 0 .8rem 2rem rgba(0, 0, 0, .4); }
.eqp-fee { width: 100%; margin-top: .9rem; padding: .8rem 1rem; border-radius: 1rem; font-size: .98rem; font-weight: 750; line-height: 1.4; text-align: left; }
.eqp-fee b { font-size: 1.2rem; }
.eqp-fee--due { color: var(--q-navy-1); background: #FFF2C6; }
.eqp-fee--paid { color: #0E5A2B; background: #E4F4E8; }
.eqp-fee--none { color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.eqp-note--answer b { color: #fff; }
.eqp-choices .eq-choice:disabled { cursor: default; opacity: .55; }
.eqp-choices .eq-choice:active:not(:disabled) { transform: scale(.98); }

/* the front desk, its own parts */
.eqd-list { display: flex; flex-direction: column; }
.eqd-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0 -.3rem; padding: 0 .3rem; }
.eqd-table thead th { position: sticky; top: 0; z-index: 1; background: var(--q-cream); }
.eqd-table tbody tr { cursor: pointer; }
.eqd-table tbody tr:hover td { background: #F6EED9; }
.eqd-table tbody tr.is-picked td { background: #E8EFFC; }
.eqd-table tbody tr.is-new td { animation: eqnew 4s ease-out; }
@keyframes eqnew { 0%, 40% { background: #FFF2C6; } 100% { background: transparent; } }
.eqd-table td small { display: block; margin-top: .1rem; font-size: .74rem; font-weight: 600; color: #8A7A55; white-space: normal; }
.eqd-kid { color: #8C6412; }
.eqd-pay { min-width: 6.6rem; padding: .32rem .65rem; border-radius: 999px; border: 0; font-size: .78rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.eqd-pay--due { color: var(--q-navy-1); background: var(--q-metal); box-shadow: 0 .2rem .5rem rgba(140, 100, 18, .3); }
.eqd-pay--paid { color: #0E5A2B; background: #E4F4E8; box-shadow: inset 0 0 0 1px #9AD6AE; }
.eqd-nofee { font-size: .8rem; color: #8A8F9C; }
.eqd-empty { margin: 1.4rem 0; text-align: center; font-size: .92rem; color: #6B7280; }
.eqd-feegrid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.eqd-feegrid div { padding: .55rem .7rem; border-radius: .8rem; background: #fff; border: 1px solid #EEE6D2; }
.eqd-feegrid b { display: block; font-family: var(--q-display); font-size: 1.45rem; }
.eqd-feegrid span { font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: #8A7A55; }
.eqd-close { margin-left: auto; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; font-size: 1.2rem; line-height: 1; color: #8C6412; background: #F3ECDB; cursor: pointer; }
.eqd-check { display: flex; align-items: center; gap: .5rem; margin: .1rem 0 .7rem; font-weight: 750; }
.eqd-check input { width: 1.2rem; height: 1.2rem; accent-color: #1E9E57; }
.eqd-errors { margin: 0 0 .6rem; padding: .5rem .7rem; border-radius: .6rem; font-size: .84rem; color: #8A1C12; background: #FDE7E3; }
.eqd-link { display: block; margin: .6rem auto 0; border: 0; background: none; font-size: .82rem; font-weight: 750; color: #B42318; text-decoration: underline; cursor: pointer; }
.eqd-btn { text-decoration: none; }
.eqd-live.is-off { color: #B42318; }
.eqd-live.is-off::before { background: #D4452A; box-shadow: none; }
.eqd-side { overflow: auto; }
@media (max-width: 900px) {
  .eqd { height: auto; overflow: visible; }
  .eqd-main { grid-template-columns: 1fr; }
  .eqd-event { display: none; }
  .eqd-scroll { max-height: 70vh; }
}

/* the entrance sign: its buttons on screen, and printing */
.eqs-tools { position: fixed; right: 1rem; top: 1rem; z-index: 5; display: flex; gap: .5rem; }
.eqs-tools a, .eqs-tools button {
  padding: .6rem 1.1rem; border: 0; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  color: var(--q-navy-1); background: var(--q-metal); box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .25);
}
.eqs-tools a { color: #fff; background: var(--q-navy-2); }
@media screen { .eqs { background: #DADDE3; } .eqs-sheet { margin: 1.5rem auto; background: #fff; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25); } }
@media print { .eqs-tools { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* a front-desk account: who is signed in, and signing out */
.eqd-signout { display: flex; align-items: center; gap: .7rem; margin: 0; }
.eqd-signout b { color: #fff; }
.eqd-signout button { padding: .25rem .8rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font: inherit; font-weight: 700; color: #fff; background: none; cursor: pointer; }

/* the family pass, and the codes for the adults' own phones */
.eqp-hello { margin-top: .4rem; }
.eqf-pass { width: 100%; margin-top: 1.1rem; overflow: hidden; border-radius: 1.2rem; text-align: left; color: var(--q-navy-1); background: var(--q-cream); box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .4); }
.eqf-nos { font-size: 1.55rem; }
.eqf-pass ol { list-style: none; margin: 0; padding: .4rem .9rem .2rem; }
.eqf-pass li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid #EEE6D2; font-size: .92rem; font-weight: 650; }
.eqf-pass li:first-child { border-top: 0; }
.eqf-pass li.is-me { font-weight: 800; }
.eqf-pass li b { font-family: var(--q-display); color: var(--q-gold-deep); }
.eqf-pass li span small { display: block; font-size: .72rem; font-weight: 600; color: #7A7462; }
.eqf-pass li em { font-style: normal; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.eqf-pass li em.is-paid { color: #1E7A43; }
.eqf-due { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; background: #FFF2C6; font-weight: 750; font-size: .92rem; }
.eqf-due b { font-family: var(--q-display); font-size: 1.35rem; }
.eqf-due.is-paid { color: #0E5A2B; background: #E4F4E8; }
.eqf-raffle { display: flex; gap: .7rem; width: 100%; margin-top: .8rem; padding: .8rem .9rem; border-radius: 1rem; text-align: left; background: rgba(255, 255, 255, .07); border: 1px solid rgba(233, 190, 85, .35); }
.eqf-raffle svg { flex: none; width: 1.8rem; height: 1.8rem; color: var(--q-gold); }
.eqf-raffle b { display: block; font-size: .95rem; font-weight: 850; }
.eqf-raffle span span { display: block; margin-top: .15rem; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.eqf-play { width: 100%; margin-top: .8rem; padding: .85rem .9rem; border-radius: 1rem; text-align: left; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.eqf-play > b { display: block; font-size: .95rem; font-weight: 850; }
.eqf-play > span { display: block; margin: .15rem 0 .75rem; font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.eqf-codes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.eqf-codes div { padding: .6rem .6rem .5rem; border-radius: .8rem; background: #fff; color: var(--q-navy-1); text-align: center; }
.eqf-codes img { display: block; width: 100%; height: auto; aspect-ratio: 1; padding: .35rem; background: #fff; box-sizing: border-box; }
.eqf-codes b { display: block; margin-top: .4rem; font-size: .85rem; }
.eqf-codes small { display: block; font-size: .7rem; color: #6B7280; }
.eqf-codes .is-joined { background: #E4F4E8; }
.eqf-joined { display: grid; place-items: center; aspect-ratio: 1; border-radius: .6rem; color: #1E7A43; background: #fff; }
.eqf-joined svg { width: 45%; height: 45%; }
a.eqp-btn { text-decoration: none; }
.eqp-note--small { margin-top: 1rem; font-size: .8rem; }
.eqp-btn + .eqp-note--small { margin-top: .9rem; }

/* the front desk: a family together */
.eqd-table tr.eqd-fam { cursor: default; }
.eqd-table tr.eqd-fam td, .eqd-table tbody tr.eqd-fam:hover td { padding-top: .55rem; background: #FFF2C6; border-bottom-color: #EEDCA6; }
.eqd-famrow { display: flex; align-items: center; gap: .8rem; font-size: .86rem; color: #5E5640; white-space: normal; }
.eqd-famrow b { color: var(--q-navy-1); }
.eqd-famrow .eqd-pay { margin-left: auto; }
.eqd-table td.eqd-ind { padding-left: 1.5rem; }
.eqd-phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: -.2rem 0 .7rem; color: #1E7A43; font-weight: 700; }
.eqd-phone .eqd-link { display: inline; margin: 0; }

/* the front desk asks before a fee is marked paid */
.eqd-confirm { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(2, 10, 32, .62); }
.eqd-confirm__box { width: min(26rem, 100%); padding: 1.15rem 1.2rem 1.1rem; border-radius: 1.1rem; color: var(--q-navy-1); background: var(--q-cream); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .45); }
.eqd-confirm__box h3 { margin: 0 0 .7rem; font-family: var(--q-display); font-size: 1.45rem; }
.eqd-confirm__list { list-style: none; margin: 0 0 .8rem; padding: 0; max-height: 14rem; overflow: auto; }
.eqd-confirm__list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; padding: .4rem 0; border-top: 1px solid #EEE6D2; font-size: .95rem; font-weight: 700; }
.eqd-confirm__list li:first-child { border-top: 0; }
.eqd-confirm__list b { font-family: var(--q-display); color: var(--q-gold-deep); }
.eqd-confirm__list em { font-style: normal; font-weight: 800; }
.eqd-confirm__amount { display: flex; align-items: baseline; justify-content: space-between; padding: .65rem .85rem; border-radius: .8rem; font-weight: 800; background: #E4F4E8; color: #0E5A2B; }
.eqd-confirm__amount b { font-family: var(--q-display); font-size: 1.6rem; }
.eqd-confirm.is-undo .eqd-confirm__amount { background: #FDE7E3; color: #8A1C12; }
.eqd-confirm__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: 1rem; }
.eqd-confirm__btns .eqd-btn { margin: 0; }
.eqd-btn--plain { color: var(--q-navy-1); background: #fff; box-shadow: inset 0 0 0 1.5px #DDD2B8; }
.eqd-btn--green { color: #fff; background: linear-gradient(180deg, #23A55E, #157A43); box-shadow: 0 .4rem 1rem rgba(21, 122, 67, .35); }
.eqd-btn--red { color: #fff; background: linear-gradient(180deg, #D4452A, #A3301A); box-shadow: 0 .4rem 1rem rgba(163, 48, 26, .3); }

/* two names on two addresses: Year End Party Registration, and the Eagles Quiz Bee */
.eq-word--reg { display: flex; flex-direction: column; gap: .14em; }
.eq-word--reg small { font-family: var(--q-sans); font-size: .4em; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.eq-word--reg b { font-size: .94em; }
.eq-title--reg small { letter-spacing: .32em; }
.eq-title--reg em { display: block; font-size: .8em; }
.eqp-hero .eq-title--sm, .eq-title--sm { font-size: 2.6rem; }
.eqb-join .eq-title--reg em { font-size: .62em; }

/* the pass: the way to the quiz */
.eqp-quizlink {
  display: inline-flex !important; align-items: center; gap: .45rem; margin-top: .75rem !important; padding: .6rem 1rem; border-radius: 999px;
  font-size: .92rem !important; font-weight: 900; color: var(--q-navy-1) !important; background: var(--q-metal); text-decoration: none;
  box-shadow: 0 .35rem .9rem rgba(140, 100, 18, .35);
}
.eqp-next .eqp-quizlink svg { flex: none; width: 1.05rem; height: 1.05rem; color: inherit; }
.eqp-quizlink[hidden] { display: none !important; }

/* the quiz: not registered yet, and registered and waiting */
.eqp-card--center { text-align: center; }
.eqp-cardtitle { margin: 0 0 .5rem; font-family: var(--q-display); font-size: 1.6rem; line-height: 1.15; }
.eqp-cardtext { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; color: #46506A; }
a.eqp-btn { text-decoration: none; }
.eqp-ready { display: flex; flex-direction: column; gap: .2rem; margin-top: 1.1rem; padding: .8rem 1.4rem; border-radius: 1rem; color: var(--q-navy-1); background: var(--q-cream); box-shadow: 0 .8rem 1.8rem rgba(0, 0, 0, .35); }
.eqp-ready b { font-family: var(--q-display); font-size: 1.5rem; color: var(--q-gold-deep); }
.eqp-ready span { font-weight: 750; }
.eqp-sitechip { display: inline-block; margin: 0 0 1rem; padding: .32rem .85rem; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--q-gold); border: 1px solid rgba(233, 190, 85, .55); background: rgba(233, 190, 85, .08); }
.eqp-hero .eqp-sitechip + .eq-title { margin-top: 0; }
