@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

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

:root {
  --soil-dark:   #1a0f05;
  --soil-mid:    #2c1a0a;
  --tunnel-live: #e8a045;
  --tunnel-glow: #ff6b00;
  --glass-edge:  rgba(180, 220, 255, 0.18);
  --glass-shine: rgba(255, 255, 255, 0.09);
  --bg:          #0d0804;
}

html, body {
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Cinzel', serif;
  color: #c8a97e;
}

h1 {
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #8a6540;
  margin-bottom: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

#hint {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: #5a3f22;
  margin-top: 10px;
  opacity: 0.9;
  flex-shrink: 0;
}

#controls {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

button {
  background: none;
  border: 1px solid #4a3010;
  color: #a07040;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  padding: 6px 16px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  border-radius: 2px;
}

button:hover {
  border-color: var(--tunnel-live);
  color: var(--tunnel-live);
}

button.active {
  background: #2a1500;
  border-color: var(--tunnel-glow);
  color: var(--tunnel-glow);
}

#wrapper {
  position: relative;
  filter: drop-shadow(0 0 40px rgba(200, 120, 30, 0.15));
  flex-shrink: 1;
  max-width: min(92vw, 60vh);
  max-height: 70dvh;
  aspect-ratio: 54 / 78;
  width: 100%;
}

#wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

#glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
