* {
    box-sizing: border-box;
    margin: 0
}

html,
body {
    height: 100%
}

body {
    font-family: 'Courier New', Courier, monospace;
    display: grid;
    place-items: center;
    background: #03030a;
    color: #e6f0ff
}

.app {
    width: min(920px, 94vw);
    height: 620px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #071022, #02030a);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6)
}

.stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity .5s ease, transform .5s ease
}

.stage.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px)
}

.landing {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.container {
    width: 90%;
    height: 70%;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.532);
    position: relative;
    display: block
}

.fakebutton {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 1000px;
    border: 2px solid #00bfff;
    background: transparent;
    color: #00bfff;
    cursor: pointer;
    transition: transform .45s cubic-bezier(.2, .9, .2, 1), left .45s ease, top .45s ease
}

.hint {
    position: absolute;
    left: 16px;
    bottom: 12px;
    font-size: 10px;
    opacity: .8
}

.room {
    padding: 18px;
    width: 100%;
    height: 100%
}

.room-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.box {
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
  background: #081018;
  position: relative;
}

.scene {
  position: absolute;
  padding: 18px;
  z-index: 1;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  overflow: hidden;
}


.veil {
    /* height: 100%; */
    /* width: 100%; */
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  border-radius: 8px;
  --spotlight: 85px;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) calc(var(--spotlight) - 10px),
    rgba(0,0,0,0.96) calc(var(--spotlight) + 30px)
  );
}

.obj {
  position: absolute;
  font-size: 40px;
  color: #cfe7ff;
  user-select: none;
  transform-origin: center;
  transition: transform .2s ease;
  cursor: default;
}
.obj:hover { transform: translateY(-6px); }
.key {
  position: absolute;
  z-index: 2;
  font-size: 40px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
  pointer-events: auto;
}

.key.clicked {
  transform: translate(-50%, -50%) scale(1);
}

.success {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 6;
  background: rgba(0, 0, 0);
  color: #fff;
  font-size: 20px;
  display: none;
  border-radius: 10px;
}
.success.show { display: grid; }