:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050403;
  color: #f8efe2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 77%, rgba(202, 82, 28, 0.24), transparent 36%),
    linear-gradient(180deg, #090808 0%, #030202 100%);
}

.experience {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 460px;
}

#fireplace {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  position: fixed;
  top: clamp(16px, 3vw, 30px);
  left: clamp(16px, 3vw, 30px);
  width: min(315px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(255, 234, 198, 0.16);
  border-radius: 8px;
  background: rgba(8, 6, 5, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  contain: layout paint;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.controls-idle .controls {
  opacity: 0.08;
  transform: translateY(-10px);
}

body.controls-idle .controls:hover,
.controls:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.title p {
  max-width: 118px;
  margin: 0;
  color: #d7bfa0;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.control {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin-top: 10px;
  color: #f3dfc6;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: #ef7b35;
}

.switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #e6d9c8;
  font-size: 0.82rem;
}

.switches input {
  accent-color: #ffb25b;
}

button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid rgba(255, 226, 181, 0.22);
  border-radius: 6px;
  background: rgba(255, 134, 51, 0.16);
  color: #fff3df;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  outline: none;
  border-color: rgba(255, 211, 134, 0.72);
  background: rgba(255, 144, 58, 0.25);
}

@media (max-width: 690px) {
  .controls {
    top: auto;
    bottom: 14px;
    padding: 14px;
  }
}
