:root {
  --amber: #f9ab00;
  --ink: #1a1a1a;
  --cream: #fff6dc;
  --soft: #5a5244;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--amber);
  color: var(--ink);
  font: 400 16px/1.5 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 20px/1 'Bricolage Grotesque', system-ui, sans-serif;
  color: var(--ink);
  text-decoration: none;
}
.tag {
  margin-left: auto;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 13px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
main {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: center;
  padding: 0 16px 16px;
}
.label {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.big {
  flex: 1 1 560px;
  max-width: 900px;
  min-width: 0;
}
#screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}
#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
#status {
  margin: 12px 0 0;
  font-weight: 800;
}
#again {
  margin-top: 12px;
  padding: 16px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
#again button {
  margin-top: 10px;
  min-height: 46px;
  padding: 0 20px;
  font: 800 16px 'Bricolage Grotesque', system-ui, sans-serif;
  background: var(--amber);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.hand {
  flex: 0 1 380px;
  width: 100%;
  max-width: 400px;
}
.frame {
  height: min(720px, 78dvh);
  min-height: 520px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}
#phone {
  width: 100%;
  height: 100%;
  border: 0;
}
.note {
  padding: 4px 16px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #3a3226;
}
@media (max-width: 700px) {
  .hand {
    order: -1;
    max-width: none;
  }
  .big {
    order: -2;
  }
  .frame {
    border-radius: 18px;
  }
}
#again a {
  color: var(--ink);
  font-weight: 800;
}

/* Two ways to play: on a laptop the page is the big screen and your phone
   joins by QR code (screen mode); on a phone, both sit side by side here. */
.scan,
.for-screen {
  display: none;
}
.screen-mode .for-screen {
  display: inline;
}
.screen-mode p.for-screen {
  display: block;
  margin-top: 6px;
}
.screen-mode .for-here,
.screen-mode .hand {
  display: none;
}
.screen-mode .big {
  flex-basis: 100%;
  max-width: min(1200px, calc((100dvh - 230px) * 16 / 9));
}
.screen-mode .scan {
  display: block;
  margin-top: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
.scan p + p {
  margin-top: 6px;
}
.scan .alt {
  font-size: 14px;
  font-weight: 600;
}
.scan a {
  color: var(--ink);
  font-weight: 800;
}
.why {
  margin: 0 16px 14px;
  padding: 12px 16px;
  font-weight: 600;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
}
