:root {
  color-scheme: dark;
  --paper: #e7dcc5;
  --paper-deep: #c9b48f;
  --ink: #2a211b;
  --copper: #b4752f;
  --copper-bright: #e2a04d;
  --wood: #2b241f;
  --wood2: #3c3129;
  --glow: rgba(255, 205, 106, 0.95);
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 900px at 50% 30%, #524437 0%, #2d261f 48%, #1f1915 100%);
  font-family: Georgia, "Times New Roman", serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

* {
  box-sizing: border-box;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

#plaque {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-width: min(92vw, 44rem);
  max-width: min(92vw, 44rem);
  padding: 0.85rem 1rem 0.9rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 219, 171, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 233, 190, 0.14), rgba(77, 56, 34, 0.28)),
    linear-gradient(90deg, rgba(42, 33, 27, 0.7), rgba(24, 18, 16, 0.82));
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 240, 214, 0.17),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  color: #f2e3cb;
  letter-spacing: 0.02em;
  pointer-events: none;
}

#line1 {
  font-size: clamp(1.02rem, 2.2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

#line2 {
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  color: rgba(242, 227, 203, 0.88);
}

#restart {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 224, 171, 0.3);
  border-radius: 999px;
  padding: 0.68rem 0.92rem;
  background:
    linear-gradient(180deg, rgba(243, 215, 166, 0.18), rgba(98, 66, 37, 0.34));
  color: #f3e4c7;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 242, 214, 0.16);
  font: 700 0.82rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  pointer-events: auto;
  cursor: pointer;
}

#restart:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  #restart {
    transition: none;
  }
}
