:root {
  font-family: Tajawal, Tahoma, sans-serif;
  color: #29183e;
  background: #f9f5fb;
  --truth: #087c4a;
  --myth: #bc183b;
}

* { box-sizing: border-box; }
body, h1, p { margin: 0; }
[hidden] { display: none !important; }

button {
  font: inherit;
  color: white;
  cursor: pointer;
  touch-action: manipulation;
}

#picker {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.clinic {
  width: fit-content;
  margin-inline: auto;
  padding: .5rem;
}

.clinic img { display: block; width: 5.5rem; height: auto; }

.activity {
  align-self: center;
  width: min(100%, 43rem);
  margin-inline: auto;
  padding-block: clamp(1.25rem, 6vh, 4rem);
  text-align: center;
}

.event-name { color: #624676; font-size: 1.25rem; font-weight: 700; }
h1 { margin-block: .5rem; font-size: clamp(2.75rem, 8vw, 5.25rem); line-height: 1.15; }
.instructions { color: #624d70; font-size: clamp(1.125rem, 3vw, 1.5rem); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 3vw, 1.5rem); margin-top: clamp(1.5rem, 5vh, 3rem); }

.choices button {
  display: grid;
  place-content: center;
  gap: .25rem;
  min-height: clamp(8rem, 24vh, 14rem);
  padding: .75rem;
  border: 0;
  border-radius: 1.25rem;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
}

[data-vote="truth"] { background-color: var(--truth); }
[data-vote="myth"] { background-color: var(--myth); }
.mark { display: block; font-family: system-ui, sans-serif; font-weight: 700; line-height: 1; }
.choices .mark { font-size: 1.25em; }
.share-code { display: inline-block; margin-top: 1rem; padding: .75rem; color: #624676; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #29183e; outline-offset: 4px; }

#answer {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  text-align: center;
}

#answer:focus-visible { outline-color: white; outline-offset: -6px; }
.answer-content { display: grid; justify-items: center; gap: .12em; font-size: clamp(3.25rem, min(23vw, 27vh), 15rem); line-height: 1.15; }
.answer-content .mark { font-size: .8em; }
.return-hint { position: absolute; bottom: max(1rem, env(safe-area-inset-bottom)); padding-inline: 1rem; font-size: 1.125rem; }

@media (max-height: 32rem) and (orientation: landscape) {
  .clinic img { width: 4rem; }
  .activity { padding-block: .25rem; }
  h1 { font-size: 2.4rem; }
  .choices { margin-top: .75rem; }
  .choices button { min-height: 4rem; grid-auto-flow: column; align-items: center; gap: .5rem; }
  .answer-content { grid-auto-flow: column; align-items: center; gap: .3em; }
}
