/* wavetracing web demo page. Tokens mirror Website~/src/app.css; dark-only, like the brand. */
@font-face {
  font-family: "Outfit";
  src: url("Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --wt-ink: #0e0d0c;
  --wt-surface: #171513;
  --wt-line: #2e2a26;
  --wt-ash: #8e867d;
  --wt-bone: #eee9e3;
  --wt-ember: #c9551c;
  --wt-ember-light: #ff8a3d;
  --wt-font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wt-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--wt-ink);
  color: var(--wt-bone);
  font: 400 16px/1.55 var(--wt-font);
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: fixed;
  inset: 0;
  background: var(--wt-ink);
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wt-ink);
  outline: none;
}

#overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background:
    radial-gradient(60rem 40rem at 50% 115%, rgba(201, 85, 28, 0.22), transparent 70%),
    var(--wt-ink);
}

.card {
  width: min(34rem, 100%);
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.logo {
  width: 240px;
  max-width: 70%;
  height: auto;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lede,
#mobile-note p {
  color: var(--wt-ash);
  max-width: 32rem;
}

#mobile-note {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: var(--wt-surface);
}

#loader {
  width: 100%;
  display: grid;
  gap: 0.45rem;
}

.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--wt-line);
  overflow: hidden;
}

#bar-fill {
  width: 0;
  height: 100%;
  background: var(--wt-ember);
  transition: width 0.2s ease-out;
}

#status {
  font-family: var(--wt-font-mono);
  font-size: 0.8rem;
  color: var(--wt-ash);
}

.btn {
  font: 500 1rem/1 var(--wt-font);
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--wt-line);
  background: var(--wt-surface);
  color: var(--wt-bone);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--wt-ash);
}

.btn.primary {
  background: var(--wt-ember);
  border-color: var(--wt-ember);
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 1.8rem;
}

.btn.primary:hover {
  background: #d9632a;
}

.btn:focus-visible,
.back:focus-visible,
#fullscreen-toggle:focus-visible {
  outline: 2px solid var(--wt-ember-light);
  outline-offset: 3px;
}

.controls {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.85rem;
  color: var(--wt-ash);
}

kbd {
  display: inline-block;
  min-width: 1.5em;
  margin-right: 0.15em;
  padding: 0.05em 0.35em;
  border: 1px solid var(--wt-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  font: 500 0.75rem/1.4 var(--wt-font-mono);
  color: var(--wt-bone);
  text-align: center;
}

#error {
  color: var(--wt-ember-light);
}

.back {
  font-size: 0.85rem;
  color: var(--wt-ash);
  text-decoration: none;
}

.back:hover {
  color: var(--wt-bone);
}

#fullscreen-toggle {
  position: absolute;
  /* Top right: the scene-menu hint owns the bottom-right corner. */
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--wt-line);
  border-radius: 8px;
  background: rgba(14, 13, 12, 0.6);
  color: var(--wt-bone);
  cursor: pointer;
  opacity: 0.55;
}

#fullscreen-toggle:hover {
  opacity: 1;
}
