﻿:root {
  color-scheme: dark;
  --yellow: #ffda00;
  --white: #faf8f2;
  background: #111;
  color: var(--white);
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 75% 15%, #28261e 0%, #111 56%);
}
[hidden] { display: none !important; }
main { min-height: 100svh; }
.panel {
  width: min(100% - 3rem, 36rem);
  margin: 0 auto;
  padding: clamp(5rem, 19svh, 11rem) 0 7rem;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(44vw, 13rem);
  height: .75rem;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 10px, #111 10px 20px);
}
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 11vw, 4.8rem);
  line-height: .96;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.055em;
}
h1 strong { display: block; color: var(--yellow); }
.panel p {
  margin: 1.5rem 0 2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--yellow);
  font-size: 1.15rem;
  line-height: 1.5;
}
button, .button {
  display: inline-block;
  max-width: 100%;
  border: 0;
  padding: .8rem 1rem;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #141414;
  background: var(--yellow);
  cursor: pointer;
}
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#fallback {
  position: fixed;
  z-index: 4;
  inset: auto 0 0;
  padding: 1rem max(1.5rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  text-align: center;
  background: #111;
}
#fallback a, noscript a { color: var(--white); text-underline-offset: .2em; }
#camera, #view { position: fixed; inset: 0; overflow: hidden; }
#camera { background: #111; }
#view > video { z-index: 0 !important; }
#view > canvas { z-index: 1; pointer-events: none; }
#professor { position: absolute; width: 1px; height: 1px; opacity: .01; pointer-events: none; }
.camera-controls {
  position: absolute;
  z-index: 3;
  inset: auto 1rem calc(4.5rem + env(safe-area-inset-bottom)) 1rem;
  text-align: center;
}
#status {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto .6rem;
  padding: .6rem .9rem;
  background: #111e;
}
#status:empty { display: none; }
